MongoDB C++ Driver
legacy-1.1.2
|
Logging domain for ephemeral messages with minimum severity. More...
#include <component_message_log_domain.h>
Public Member Functions | |
bool | shouldLog (LogComponent component, LogSeverity severity) const |
Predicate that answers the questwion, "Should I, the caller, append to you, the log
domain, messages of the given severity?" True means yes. | |
bool | hasMinimumLogSeverity (LogComponent component) const |
Returns true if a minimum log severity has been set for this component. More... | |
LogSeverity | getMinimumLogSeverity () const |
Gets the minimum severity of messages that should be sent to this LogDomain. | |
void | setMinimumLoggedSeverity (LogSeverity severity) |
Sets the minimum severity of messages that should be sent to this LogDomain. | |
void | clearMinimumLoggedSeverity (LogComponent component) |
Clears the minimum log severity for component. More... | |
Public Member Functions inherited from mongo::logger::LogDomain< E > | |
Status | append (const Event &event) |
Receives an event for logging, calling append(event) on all attached appenders. More... | |
bool | getAbortOnFailure () const |
Gets the state of the abortOnFailure flag. | |
void | setAbortOnFailure (bool abortOnFailure) |
Sets the state of the abortOnFailure flag. | |
AppenderHandle | attachAppender (AppenderAutoPtr appender) |
Attaches "appender" to this domain, taking ownership of it. More... | |
AppenderAutoPtr | detachAppender (AppenderHandle handle) |
Detaches the appender referenced by "handle" from this domain, releasing ownership of it. More... | |
void | clearAppenders () |
Destroy all attached appenders, invalidating all handles. | |
Logging domain for ephemeral messages with minimum severity.
void mongo::logger::ComponentMessageLogDomain::clearMinimumLoggedSeverity | ( | LogComponent | component | ) |
Clears the minimum log severity for component.
For kDefault, severity level is initialized to default value.
bool mongo::logger::ComponentMessageLogDomain::hasMinimumLogSeverity | ( | LogComponent | component | ) | const |
Returns true if a minimum log severity has been set for this component.
Called by log level commands to query component severity configuration.