|
SFCGAL
1.4.0
|
[Singleton]Logger class More...
#include <Log.h>
Public Types | |
| enum | Level { Debug , Info , Warning , Error , Critical } |
| log level More... | |
Public Member Functions | |
| ~Logger () | |
| destructor More... | |
| void | log (const Level &level, const boost::format &message, const std::string &filename="", const int &lineNumber=-1) |
| log a message using boost format More... | |
| void | log (const Level &level, const std::string &message, const std::string &filename="", const int &lineNumber=-1) |
| log a message More... | |
| const Level & | logLevel () const |
| get the current log level More... | |
| void | setLogLevel (const Level &logLevel) |
| set the log level More... | |
Static Public Member Functions | |
| static Logger * | get () |
| singleton accessor More... | |
[Singleton]Logger class
| SFCGAL::Logger::~Logger | ( | ) |
destructor
|
static |
singleton accessor
| void SFCGAL::Logger::log | ( | const Level & | level, |
| const boost::format & | message, | ||
| const std::string & | filename = "", |
||
| const int & | lineNumber = -1 |
||
| ) |
log a message using boost format
| level | the log level |
| message | the message to log |
| filename | the filename (optional) |
| lineNumber | the line number in the file (optional) |
| void SFCGAL::Logger::log | ( | const Level & | level, |
| const std::string & | message, | ||
| const std::string & | filename = "", |
||
| const int & | lineNumber = -1 |
||
| ) |
log a message
| level | the log level |
| message | the message to log |
| filename | the filename (optional) |
| lineNumber | the line number in the file (optional) |
| const Logger::Level & SFCGAL::Logger::logLevel | ( | ) | const |
get the current log level
| void SFCGAL::Logger::setLogLevel | ( | const Level & | logLevel | ) |
set the log level