Modules | |
Factories | |
Classes | |
struct | ILoggerSink |
Represents the object that actually writes the log messages to the target. Each Logger Sink is responsible for only single target: file, console etc. More... | |
class | LoggerSinkPtr |
Represents the object that actually writes the log messages to the target. Each Logger Sink is responsible for only single target: file, console etc. More... | |
Functions | |
void | setLevel (daq::LogLevel level) const |
Sets the minimal severity level of messages to be written to the target. More... | |
daq::LogLevel | getLevel () const |
Gets the minimal severity level of messages to be written to the target. More... | |
daq::Bool | shouldLog (daq::LogLevel level) const |
Checks whether the messages with given log severity level will be written to the target or not. More... | |
void | setPattern (const daq::StringPtr &pattern) const |
Sets the custom formatter pattern for the sink. More... | |
void | flush () const |
Triggers writing out the messages from temporary buffers to the target. | |
|
inline |
Gets the minimal severity level of messages to be written to the target.
|
inline |
Sets the minimal severity level of messages to be written to the target.
level | The log severity level of the sink. |
|
inline |
Sets the custom formatter pattern for the sink.
pattern | The formatter pattern string. |
|
inline |
Checks whether the messages with given log severity level will be written to the target or not.
level | The severity level of messages. |
level
will be written to the target; false otherwise.