2 #include <simgear/debug/logstream.hxx>
8 //cout << "Cout seems to work" << endl;
9 //cerr << "Cerr seems to work" << endl;
11 sglog().setLogLevels( SG_ALL, SG_INFO );
13 SG_LOG(SG_EVENT, SG_INFO, "Test::Test" << "foo");
21 main( int argc, char* argv[] )
23 sglog().setLogLevels( SG_ALL, SG_INFO );
25 //SG_LOG( FG_TERRAIN, FG_BULK, "terrain::bulk" ); // shouldnt appear
26 //SG_LOG( FG_TERRAIN, SG_DEBUG, "terrain::debug" ); // shouldnt appear
27 //SG_LOG( FG_TERRAIN, SG_INFO, "terrain::info" );
28 //SG_LOG( FG_TERRAIN, FG_WARN, "terrain::warn" );
29 //SG_LOG( FG_TERRAIN, SG_ALERT, "terrain::alert" );
34 string s = "Hello world!";
36 SG_LOG( SG_EVENT, SG_INFO, "event::info "
41 << ", s=\"" << s << "\"" );
43 // This shouldn't appear in log output:
44 SG_LOG( SG_EVENT, SG_DEBUG, "event::debug "
45 << "- this should be seen - "
47 << ", s=\"" << s << "\"" );