]> git.mxchange.org Git - simgear.git/blobdiff - simgear/debug/logtest.cxx
remove old .cvsignore files
[simgear.git] / simgear / debug / logtest.cxx
index bf923e7a657f87d1c6ecca650e7c8f5d42ba4daa..07a6501a16412ec498258dc7a37782e980d4556f 100644 (file)
@@ -1,16 +1,32 @@
 #include <string>
-#include "Debug/logstream.hxx"
+#include <simgear/debug/logstream.hxx>
+
+class Test {
+
+       public:
+       Test() {
+         //cout << "Cout seems to work" << endl;
+         //cerr << "Cerr seems to work" << endl;
+         
+         sglog().setLogLevels( SG_ALL, SG_INFO );
+         
+         SG_LOG(SG_EVENT, SG_INFO, "Test::Test" << "foo");
+       }
+
+};
+
+Test test;
 
 int
 main( int argc, char* argv[] )
 {
-    fglog().setLogLevels( SG_ALL, SG_INFO );
+    sglog().setLogLevels( SG_ALL, SG_INFO );
 
-    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" );
+    //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;