LogSettings::Enum operator|(LogSettings::Enum a, LogSettings::Enum b)
Typed logical operator helper.
ONIXS_B3_UMDF_MD_API std::string enumToString(LogLevel::Enum)
Returns string representation of ErrorCode value.
ONIXS_B3_UMDF_MD_API std::ostream & operator<<(std::ostream &stream, const LoggerSettings &settings)
Log file read permissions.
@ ReadOwnerOnly
read access only for owner of process
@ WriteAll
write access for all
@ ReadAll
read access for all
@ WriteOwnerOnly
write access only for owner of process
@ Info
Warning, can continue.
@ Warning
Error, cannot continue.
@ Trace
Information message.
@ Debug
Used for tracing, usually including functions' names and args.
@ ConsoleShowPrefix
if TraceToConsole is set, then append prefix to output
@ Default
Default log settings.
@ LogPackets
Log binary data of received packets, applied only for Info log level and below.
@ LogBooks
Log updated order book, applied only for Debug log level.
@ TraceToFile
Trace to the log file.
@ ConsoleErr
if TraceToConsole is set, then direct output to stderr
@ ConsoleColored
if TraceToConsole is set, then set up colored output mode
@ Async
Use asynchronous logging.
@ TraceToConsole
Duplicate log messages to console.
std::string logDirectory
Log files are stored in this directory.
LogSettings::Enum logSettings
Combine LogSettings enum values to configure the logger.
std::string logFileNamePrefix
Template of log file name without extension.
LoggerSettings()
Constructor.
LogLevel::Enum logLevel
Log verbosity.
LogFilePermission::Enum logFilePermissions
Log file permissions.