Resource class for streamed logging.
More...
#include <WLogger.h>
|
class | Buffer |
| Actually implementing the streaming functionality. More...
|
|
Resource class for streamed logging.
Definition at line 179 of file WLogger.h.
◆ WStreamedLogger()
wlog::WStreamedLogger::WStreamedLogger |
( |
const std::string & |
source, |
|
|
LogLevel |
level |
|
) |
| |
|
inline |
Creates new streamed logger instance.
Logging is deferred until destruction of this instance.
- Parameters
-
source | Source from which the log message originates |
level | The LogLevel of the message |
Definition at line 254 of file WLogger.h.
Referenced by wlog::_wlog().
◆ operator<<() [1/2]
Appends something loggable (to std::string castable) to the log.
- Parameters
-
loggable | Token that should be streamed into the Logger |
- Returns
- The streamed logger for further use
Definition at line 259 of file WLogger.h.
References m_buffer.
◆ operator<<() [2/2]
WStreamedLogger wlog::WStreamedLogger::operator<< |
( |
StreamManipulatorFunctor |
manip | ) |
|
|
inline |
◆ operator=()
Forbid assignment.
- Parameters
-
rhs | The instance which SHOULD be copied over |
- Returns
- A reference to the variable for which assignment was INTENDED.
◆ m_buffer
std::shared_ptr< Buffer > wlog::WStreamedLogger::m_buffer |
|
private |
The documentation for this class was generated from the following file: