* added some useful comments in eoLogger class
This commit is contained in:
parent
20a4496b83
commit
0834d689e8
2 changed files with 51 additions and 46 deletions
|
|
@ -50,12 +50,15 @@ eoLogger::eoLogger()
|
||||||
_standard_io_streams[&std::clog] = 2;
|
_standard_io_streams[&std::clog] = 2;
|
||||||
_standard_io_streams[&std::cerr] = 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("quiet", eo::quiet);
|
||||||
addLevel("errors", eo::errors);
|
addLevel("errors", eo::errors);
|
||||||
addLevel("warnings", eo::warnings);
|
addLevel("warnings", eo::warnings);
|
||||||
addLevel("progress", eo::progress);
|
addLevel("progress", eo::progress);
|
||||||
addLevel("logging", eo::logging);
|
addLevel("logging", eo::logging);
|
||||||
addLevel("debug", eo::debug);
|
addLevel("debug", eo::debug);
|
||||||
|
addLevel("xdebug", eo::debug);
|
||||||
}
|
}
|
||||||
|
|
||||||
eoLogger::~eoLogger()
|
eoLogger::~eoLogger()
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,8 @@ namespace eo
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Levels contents all the available levels in eoLogger
|
* 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,
|
enum Levels {quiet = 0,
|
||||||
errors,
|
errors,
|
||||||
|
|
@ -106,7 +108,7 @@ namespace eo
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* file
|
* 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
|
struct file
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Reference in a new issue