CatapultServer
v0.5.0.1 (Elephant)
|
LogLevel m_level
Definition: StackLogger.h:69
~StackLogger()
Destructor.
Definition: StackLogger.h:39
~SlowOperationLogger()
Destructor.
Definition: StackLogger.h:61
StackLogger(const char *message, LogLevel level)
Constructs a logger with a message and log level.
Definition: StackLogger.h:32
static constexpr TimeSpan FromMilliseconds(uint64_t milliseconds)
Creates a time span from the given number of milliseconds.
Definition: TimeSpan.h:59
Represents a time duration.
Definition: TimeSpan.h:30
static constexpr TimeSpan FromSeconds(uint64_t seconds)
Creates a time span from the given number of seconds.
Definition: TimeSpan.h:54
Simple RAII class that logs slow operation messages.
Definition: StackLogger.h:51
LogLevel
Catapult log levels.
Definition: Logging.h:36
StackTimer m_timer
Definition: StackLogger.h:71
LogLevel m_level
Definition: StackLogger.h:46
Simple RAII class that logs scope messages.
Definition: StackLogger.h:29
#define CATAPULT_LOG_LEVEL(LEVEL)
Writes a log entry to the default logger with LEVEL severity.
Definition: Logging.h:336
const char * m_message
Definition: StackLogger.h:45
Stack based timer.
Definition: StackTimer.h:27
Definition: AddressExtractionExtension.cpp:28
TimeSpan m_threshold
Definition: StackLogger.h:70
StackTimer m_timer
Definition: StackLogger.h:47
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.
Definition: StackLogger.h:54
uint64_t millis() const
Gets the number of elapsed milliseconds since this logger was created.
Definition: StackTimer.h:38
const char * m_message
Definition: StackLogger.h:68