PcapPlusPlus
Next
|
A context encapsulating the details of a single log message to be passed to the Logger. More...
#include <Logger.h>
Public Member Functions | |
LogContext ()=default | |
Creates a context with an empty message with Info level and no source. | |
LogContext (LogLevel level, LogSource const &source={}) | |
Creates a context with an empty message with the given level and source. More... | |
void | init (LogLevel level, LogSource const &source) |
Initializes the context with an empty message and the given level and source. More... | |
template<class T > | |
LogContext & | operator<< (T const &value) |
Appends to the message. More... | |
Friends | |
class | pcpp::Logger |
A context encapsulating the details of a single log message to be passed to the Logger.
|
inlineexplicit |
Creates a context with an empty message with the given level and source.
level | The log level for this message. |
source | The log source. |
Initializes the context with an empty message and the given level and source.
level | The log level for this message. |
source | The log source. |
|
inline |
Appends to the message.
value | The value to append. |