* added some useful comments in eoLogger class

This commit is contained in:
Caner Candan 2010-08-31 19:26:51 +02:00
commit 0834d689e8
2 changed files with 51 additions and 46 deletions

View file

@ -50,12 +50,15 @@ eoLogger::eoLogger()
_standard_io_streams[&std::clog] = 2;
_standard_io_streams[&std::cerr] = 2;
// /!\ If you want to add a level dont forget to add it at the header file in the enumerator Levels
addLevel("quiet", eo::quiet);
addLevel("errors", eo::errors);
addLevel("warnings", eo::warnings);
addLevel("progress", eo::progress);
addLevel("logging", eo::logging);
addLevel("debug", eo::debug);
addLevel("xdebug", eo::debug);
}
eoLogger::~eoLogger()

View file

@ -20,8 +20,8 @@
Contact: http://eodev.sourceforge.net
Authors:
Johann Dréo <johann.dreo@thalesgroup.com>
Caner Candan <caner.candan@thalesgroup.com>
Johann Dréo <johann.dreo@thalesgroup.com>
Caner Candan <caner.candan@thalesgroup.com>
*/
@ -78,7 +78,7 @@ Authors:
return 0;
}
*/
*/
#ifndef eoLogger_h
# define eoLogger_h
@ -95,6 +95,8 @@ namespace eo
{
/**
* Levels contents all the available levels in eoLogger
*
* /!\ If you want to add a level dont forget to add it at the implementation of the class eoLogger in the ctor
*/
enum Levels {quiet = 0,
errors,
@ -106,7 +108,7 @@ namespace eo
/**
* file
* this structure combined with the friend operator<< below is an easy way to select a file like output.
* this structure combined with the friend operator<< below is an easy way to select a file as output.
*/
struct file
{