]> git.mxchange.org Git - simgear.git/blobdiff - simgear/debug/logtest.cxx
Patch from Melchior Franz:
[simgear.git] / simgear / debug / logtest.cxx
index b02c6b086beec56af1815eab4f525d736ae3a3fc..bf923e7a657f87d1c6ecca650e7c8f5d42ba4daa 100644 (file)
@@ -4,20 +4,20 @@
 int
 main( int argc, char* argv[] )
 {
-    fglog().setLogLevels( FG_ALL, FG_INFO );
+    fglog().setLogLevels( SG_ALL, SG_INFO );
 
-    FG_LOG( FG_TERRAIN, FG_BULK,  "terrain::bulk" ); // shouldnt appear
-    FG_LOG( FG_TERRAIN, FG_DEBUG, "terrain::debug" ); // shouldnt appear
-    FG_LOG( FG_TERRAIN, FG_INFO,  "terrain::info" );
-    FG_LOG( FG_TERRAIN, FG_WARN,  "terrain::warn" );
-    FG_LOG( FG_TERRAIN, FG_ALERT, "terrain::alert" );
+    SG_LOG( FG_TERRAIN, FG_BULK,  "terrain::bulk" ); // shouldnt appear
+    SG_LOG( FG_TERRAIN, SG_DEBUG, "terrain::debug" ); // shouldnt appear
+    SG_LOG( FG_TERRAIN, SG_INFO,  "terrain::info" );
+    SG_LOG( FG_TERRAIN, FG_WARN,  "terrain::warn" );
+    SG_LOG( FG_TERRAIN, SG_ALERT, "terrain::alert" );
 
     int i = 12345;
     long l = 54321L;
     double d = 3.14159;
     string s = "Hello world!";
 
-    FG_LOG( FG_EVENT, FG_INFO, "event::info "
+    SG_LOG( SG_EVENT, SG_INFO, "event::info "
                                 << "i=" << i
                                 << ", l=" << l
                                 << ", d=" << d
@@ -25,7 +25,7 @@ main( int argc, char* argv[] )
                                 << ", s=\"" << s << "\"" );
 
     // This shouldn't appear in log output:
-    FG_LOG( FG_EVENT, FG_DEBUG, "event::debug "
+    SG_LOG( SG_EVENT, SG_DEBUG, "event::debug "
            << "- this should be seen - "
            << "d=" << d
            << ", s=\"" << s << "\"" );