Class SFCGAL::Logger
#include <Log.h>
Public Types
| Type | Name |
|---|---|
| enum | Level |
Public Functions
| Type | Name |
|---|---|
| void | log (const Level & level, const boost::format & message, const std::string & filename="", const int & lineNumber=-1) |
| void | log (const Level & level, const std::string & message, const std::string & filename="", const int & lineNumber=-1) |
| const Level & | logLevel () const |
| void | setLogLevel (const Level & logLevel) |
| ~Logger () |
Public Static Functions
| Type | Name |
|---|---|
| Logger * | get () |
Detailed Description
[Singleton]Logger class
Warning:
saved_lines and co removed (dangerous for memory and could be done in a LogWriter).
Public Types Documentation
enum Level
enum SFCGAL::Logger::Level {
Debug,
Info,
Warning,
Error,
Critical
};
log level
Public Functions Documentation
function log [1/2]
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:
levelthe log levelmessagethe message to logfilenamethe filename (optional)lineNumberthe line number in the file (optional)
function log [2/2]
void SFCGAL::Logger::log (
const Level & level,
const std::string & message,
const std::string & filename="",
const int & lineNumber=-1
)
log a message
Parameters:
levelthe log levelmessagethe message to logfilenamethe filename (optional)lineNumberthe line number in the file (optional)
function logLevel
const Level & SFCGAL::Logger::logLevel () const
get the current log level
function setLogLevel
void SFCGAL::Logger::setLogLevel (
const Level & logLevel
)
set the log level
function ~Logger
SFCGAL::Logger::~Logger ()
destructor
Public Static Functions Documentation
function get
static Logger * SFCGAL::Logger::get ()
singleton accessor
The documentation for this class was generated from the following file /builds/florent_fougeres/SFCGAL/src/detail/tools/Log.h