testapp/src_min.cpp File Reference


Detailed Description

Minimalistic usage of liblogger, without bothering about module name and log level.

Definition in file src_min.cpp.

#include <liblogger/liblogger.h>

Go to the source code of this file.

Functions

int TestFuncMin ()


Function Documentation

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 }


liblogger © 2007 - SourceForge.net Logo