[Singleton]Logger class
More...
#include <Log.h>
[Singleton]Logger class
- Warning
- saved_lines and co removed (dangerous for memory and could be done in a LogWriter).
log level
| Enumerator |
|---|
| Debug |
|
| Info |
|
| Warning |
|
| Error |
|
| Critical |
|
| SFCGAL::Logger::~Logger |
( |
| ) |
|
|
default |
| auto SFCGAL::Logger::get |
( |
| ) |
|
|
static |
| 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
| void SFCGAL::Logger::setLogLevel |
( |
const Level & |
logLevel | ) |
|