testapp/logtest.h File Reference

Go to the source code of this file.

Functions

int TestFuncFatal ()
int TestFuncWarn ()
int TestFuncDebug ()
int TestNoFilename ()
int TestFuncMin ()
int TestFuncNoLogs ()


Function Documentation

int TestFuncDebug (  ) 

Definition at line 15 of file src_debug.cpp.

00016 {
00017         // log the function entry log.
00018         LogFuncEntry();
00019 
00020         LogTrace("Trace log %s %f", "Test", 1.066f);
00021         LogDebug("Debug level log" );
00022         LogInfo("Info level log %d" , 0);
00023         LogWarn("Warn level log" );
00024         LogError("Error level log" );
00025         LogFatal("Fatal level log" );
00026 
00027         if(1)
00028         {
00029                 // log the function exit .
00030                 LogFuncExit();
00031                 return 0;
00032         }
00033         else
00034         {
00035                 // log the function exit .
00036                 LogFuncExit();
00037                 return -1;
00038         }
00039         
00040 }

int TestFuncFatal (  ) 

Definition at line 15 of file src_fatal.cpp.

00016 {
00017         // log the function entry log.
00018         LogFuncEntry();
00019 
00020         LogTrace("Trace log %s %f", "Test", 1.066f);
00021         LogDebug("Debug level log" );
00022         LogInfo("Info level log %d" , 0);
00023         LogWarn("Warn level log" );
00024         LogError("Error level log" );
00025         LogFatal("Fatal level log" );
00026 
00027         if(1)
00028         {
00029                 // log the function exit .
00030                 LogFuncExit();
00031                 return 0;
00032         }
00033         else
00034         {
00035                 // log the function exit .
00036                 LogFuncExit();
00037                 return -1;
00038         }
00039         
00040 }

int TestFuncMin (  ) 

Definition at line 11 of file src_min.cpp.

00012 {
00013         // log the function entry log.
00014         LogFuncEntry();
00015 
00016         LogTrace("Trace log %s %f", "Test", 1.066f);
00017         LogDebug("Debug level log" );
00018         LogInfo("Info level log %d" , 0);
00019         LogWarn("Warn level log" );
00020         LogError("Error level log" );
00021         LogFatal("Fatal level log" );
00022 
00023         if(1)
00024         {
00025                 // log the function exit .
00026                 LogFuncExit();
00027                 return 0;
00028         }
00029         else
00030         {
00031                 // log the function exit .
00032                 LogFuncExit();
00033                 return -1;
00034         }
00035         
00036 }

int TestFuncNoLogs (  ) 

Definition at line 12 of file src_nologs.cpp.

00013 {
00014         // log the function entry log.
00015         LogFuncEntry();
00016 
00017         LogTrace("Trace log %s %f", "Test", 1.066f);
00018         LogDebug("Debug level log" );
00019         LogInfo("Info level log %d" , 0);
00020         LogWarn("Warn level log" );
00021         LogError("Error level log" );
00022         LogFatal("Fatal level log" );
00023 
00024         if(1)
00025         {
00026                 // log the function exit .
00027                 LogFuncExit();
00028                 return 0;
00029         }
00030         else
00031         {
00032                 // log the function exit .
00033                 LogFuncExit();
00034                 return -1;
00035         }
00036         
00037 }

int TestFuncWarn (  ) 

Definition at line 15 of file src_warn.cpp.

00016 {
00017         // log the function entry log.
00018         LogFuncEntry();
00019 
00020         LogTrace("Trace log %s %f", "Test", 1.066f);
00021         LogDebug("Debug level log" );
00022         LogInfo("Info level log %d" , 0);
00023         LogWarn("Warn level log" );
00024         LogError("Error level log" );
00025         LogFatal("Fatal level log" );
00026 
00027         if(1)
00028         {
00029                 // log the function exit .
00030                 LogFuncExit();
00031                 return 0;
00032         }
00033         else
00034         {
00035                 // log the function exit .
00036                 LogFuncExit();
00037                 return -1;
00038         }
00039         
00040 }

int TestNoFilename (  ) 

Definition at line 17 of file src_nofilename.cpp.

00018 {
00019         // log the function entry log.
00020         LogFuncEntry();
00021 
00022         LogTrace("Trace log %s %f", "Test", 1.066f);
00023         LogDebug("Debug level log" );
00024         LogInfo("Info level log %d" , 0);
00025         LogWarn("Warn level log" );
00026         LogError("Error level log" );
00027         LogFatal("Fatal level log" );
00028 
00029         if(1)
00030         {
00031                 // log the function exit .
00032                 LogFuncExit();
00033                 return 0;
00034         }
00035         else
00036         {
00037                 // log the function exit .
00038                 LogFuncExit();
00039                 return -1;
00040         }
00041         
00042 }


liblogger © 2007 - SourceForge.net Logo