CatapultServer
v0.5.0.1 (Elephant)
|
Simple RAII class that logs slow operation messages. More...
Public Member Functions | |
SlowOperationLogger (const char *message, LogLevel level, const TimeSpan &threshold=TimeSpan::FromSeconds(1)) | |
Constructs a logger with a message and log level for messages longer than threshold. More... | |
~SlowOperationLogger () | |
Destructor. More... | |
Private Attributes | |
const char * | m_message |
LogLevel | m_level |
TimeSpan | m_threshold |
StackTimer | m_timer |
Simple RAII class that logs slow operation messages.
|
inline |
Constructs a logger with a message and log level for messages longer than threshold.
|
inline |
Destructor.
|
private |
|
private |
|
private |
|
private |