LogWriter, writes logs to file or screen.
More...
#include <WsLogWriter.h>
LogWriter, writes logs to file or screen.
Definition at line 30 of file WsLogWriter.h.
| WsLogWriter::~WsLogWriter |
( |
| ) |
|
| WsLogWriter::WsLogWriter |
( |
| ) |
|
|
protected |
returns the instance of the WsLogWriter class. If no instance is existing, a new instance will be returned
Definition at line 26 of file WsLogWriter.cpp.
| void WsLogWriter::readConf |
( |
| ) |
|
|
protected |
reads the conf needed to know log path and verbose level
Definition at line 104 of file WsLogWriter.cpp.
| string WsLogWriter::toString |
( |
int |
level | ) |
|
|
protected |
Converts the log level to string.
- Parameters
-
Definition at line 49 of file WsLogWriter.cpp.
| void WsLogWriter::write |
( |
const int & |
level, |
|
|
const std::string & |
message |
|
) |
| |
writes the message to the log file
message the message to write level the log level
Definition at line 64 of file WsLogWriter.cpp.
| std::ofstream WsLogWriter::m_logfile |
|
private |
| int WsLogWriter::m_logLevel |
|
private |
| pthread_mutex_t WsLogWriter::m_mutex |
|
private |
| std::string WsLogWriter::m_path |
|
private |
The documentation for this class was generated from the following files:
- /Users/benoitdaccache/Documents/Dropbox/Programming/Ws/wscore/src/Logger/WsLogWriter.h
- /Users/benoitdaccache/Documents/Dropbox/Programming/Ws/wscore/src/Logger/WsLogWriter.cpp