[Singleton]Logger class
More...
#include <Log.h>
|
| using | Level = enum{Debug, Info, Warning, Error, Critical} |
| | log level More...
|
| |
[Singleton]Logger class
- Warning
- saved_lines and co removed (dangerous for memory and could be done in a LogWriter).
| SFCGAL::Logger::~Logger |
( |
| ) |
|
|
default |
| auto SFCGAL::Logger::get |
( |
| ) |
|
|
static |
singleton accessor
- Returns
- Pointer to the global Logger instance
| 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
- Parameters
-
| 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
- Parameters
-
| level | the log level |
| message | the message to log |
| filename | the filename (optional) |
| lineNumber | the line number in the file (optional) |
| auto SFCGAL::Logger::logLevel |
( |
| ) |
const |
get the current log level
- Returns
- The current logging level
| void SFCGAL::Logger::setLogLevel |
( |
const Level & |
logLevel | ) |
|
set the log level
- Parameters
-
| logLevel | The new log level to set |