CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 #include <unordered_map>
27 namespace catapult {
namespace utils {
class ConfigurationBag; } }
29 namespace catapult {
namespace config {
static constexpr auto ColorMode
Definition: Logging.cpp:90
utils::LogLevel Level
Log level.
Definition: LoggingConfiguration.h:37
void VerifyBagSizeLte(const ConfigurationBag &bag, size_t expectedSize)
Verifies that the number of properties in bag is no greater than expectedSize.
Definition: utils/ConfigurationUtils.cpp:38
constexpr uint64_t bytes() const
Returns the number of bytes.
Definition: FileSize.h:67
utils::BasicLoggerOptions GetConsoleLoggerOptions(const ConsoleLoggerConfiguration &config)
Maps console logger configuration (config) to console logger options.
Definition: LoggingConfiguration.cpp:64
FileLoggerConfiguration File
File logger settings.
Definition: LoggingConfiguration.h:74
Basic logger configuration settings.
Definition: LoggingConfiguration.h:32
LogColorMode
Catapult (console) log color modes.
Definition: Logging.h:80
utils::FileSize MinFreeSpace
Minimum size of free disk space in order to create log files.
Definition: LoggingConfiguration.h:64
uint64_t MinFreeSpace
Minimum size of free disk space in order to create log files.
Definition: Logging.h:158
A simple bag of properties.
Definition: ConfigurationBag.h:57
Basic logger options.
Definition: Logging.h:122
Logging configuration settings.
Definition: LoggingConfiguration.h:68
utils::FileSize RotationSize
File rotation size.
Definition: LoggingConfiguration.h:58
LogSinkType
Catapult log sink types.
Definition: Logging.h:67
static LoggingConfiguration Uninitialized()
Creates an uninitialized logging configuration.
Definition: LoggingConfiguration.cpp:27
LoggingConfiguration()=default
#define LOAD_FILE_LOGGER_PROPERTY(NAME)
utils::LogColorMode ColorMode
Console color mode.
Definition: LoggingConfiguration.h:46
LogLevel
Catapult log levels.
Definition: Logging.h:36
Represents a file size.
Definition: FileSize.h:29
static LoggingConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads a logging configuration from bag.
Definition: LoggingConfiguration.cpp:31
File logger options.
Definition: Logging.h:138
LogColorMode ColorMode
Log color mode.
Definition: Logging.h:134
utils::LogSinkType SinkType
Log sink type.
Definition: LoggingConfiguration.h:34
std::string Directory
Log file directory.
Definition: LoggingConfiguration.h:52
std::unordered_map< std::string, utils::LogLevel > ComponentLevels
Custom component log levels.
Definition: LoggingConfiguration.h:40
Console logger configuration settings.
Definition: LoggingConfiguration.h:44
#define LOAD_CONSOLE_LOGGER_PROPERTY(NAME)
std::string FilePattern
Log file pattern.
Definition: LoggingConfiguration.h:55
Definition: AddressExtractionExtension.cpp:28
utils::FileLoggerOptions GetFileLoggerOptions(const FileLoggerConfiguration &config)
Maps file logger configuration (config) to file logger options.
Definition: LoggingConfiguration.cpp:71
File logger configuration settings.
Definition: LoggingConfiguration.h:50
ConsoleLoggerConfiguration Console
Console logger settings.
Definition: LoggingConfiguration.h:71
LogSinkType SinkType
Log sink type.
Definition: Logging.h:131
utils::FileSize MaxTotalSize
Maximum size of all log files.
Definition: LoggingConfiguration.h:61
UnorderedKeyValueMap< T > getAll(const char *section) const
Gets all section properties from this bag.
Definition: ConfigurationBag.h:142
uint64_t RotationSize
File rotation size.
Definition: Logging.h:152
uint64_t MaxTotalSize
Maximum size of all log files.
Definition: Logging.h:155