2 #include "Debug/logstream.hxx"
5 main( int argc, char* argv[] )
7 fglog().setLogLevels( SG_ALL, SG_INFO );
9 SG_LOG( FG_TERRAIN, FG_BULK, "terrain::bulk" ); // shouldnt appear
10 SG_LOG( FG_TERRAIN, SG_DEBUG, "terrain::debug" ); // shouldnt appear
11 SG_LOG( FG_TERRAIN, SG_INFO, "terrain::info" );
12 SG_LOG( FG_TERRAIN, FG_WARN, "terrain::warn" );
13 SG_LOG( FG_TERRAIN, SG_ALERT, "terrain::alert" );
18 string s = "Hello world!";
20 SG_LOG( SG_EVENT, SG_INFO, "event::info "
25 << ", s=\"" << s << "\"" );
27 // This shouldn't appear in log output:
28 SG_LOG( SG_EVENT, SG_DEBUG, "event::debug "
29 << "- this should be seen - "
31 << ", s=\"" << s << "\"" );