Logger singleton Class.
More...
#include <log.h>
|
void | Log (const char *format,...) |
| Writes a message (printf style). All messages will be prefixed with current time.
|
|
|
static Logger * | Instance () |
| Returns the singleton's instance of this class.
|
|
|
std::mutex | _mutex |
| Mutex to make the class safe to multiple threads.
|
|
WritePolicy | _writer |
| A writer (console, file, etc.)
|
|
template<class WritePolicy>
class Logger< WritePolicy >
Logger singleton Class.
A class that enables to log messages to files, console and others
template<class WritePolicy>
Returns the singleton's instance of this class.
template<class WritePolicy>
void Logger< WritePolicy >::Log |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
Writes a message (printf style). All messages will be prefixed with current time.
template<class WritePolicy>
Logger< WritePolicy > * Logger< WritePolicy >::_instance = NULL |
|
staticprivate |
There's only one instance of this class.
template<class WritePolicy>
std::mutex Logger< WritePolicy >::_mutex |
|
private |
Mutex to make the class safe to multiple threads.
template<class WritePolicy>
WritePolicy Logger< WritePolicy >::_writer |
|
private |
A writer (console, file, etc.)
The documentation for this class was generated from the following file: