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