OnixS C++ FMX UST BIMP Market Data Handler 1.4.1
API documentation
Loading...
Searching...
No Matches
LogSettings Struct Reference

Public Types

enum  Enum

Detailed Description

Definition at line 53 of file LogSettings.h.

Member Enumeration Documentation

◆ Enum

enum Enum
Enumerator
Disabled 0x00 

Turn logging off completely.

The Handler installs a null logger instead of a real one, so nothing is written anywhere and no log file is created. Anything above LogLevel::Fatal is rejected on severity, before it is formatted, so logging costs nothing while the Handler runs. logLevel, logDirectory, logFileNamePrefix and logFilePermissions are ignored.

Errors and warnings still reach ErrorListener and WarningListener - this silences the log, not the Handler.

Note
This is the only way to switch logging off. logLevel merely suppresses messages: even at LogLevel::Fatal the logger is still constructed, and the version banner and the settings dump are written regardless of the level.
Only this exact value disables logging. Omitting TraceToFile and TraceToConsole while keeping, say, LogPackets is not Disabled: the logger is still built, it just has nowhere to write.
TraceToFile 0x01 

Trace to the log file.

TraceToConsole 0x02 

Duplicate log messages to console.

Note
Messages with LogLevel::Trace and LogLevel::Debug are not duplicated to console.
Async 0x4 

Use asynchronous logging.

ConsoleErr 0x8 

if TraceToConsole is set, then direct output to stderr

ConsoleColored 0x10 

if TraceToConsole is set, then set up colored output mode

ConsoleShowPrefix 0x20 

if TraceToConsole is set, then append prefix to output

LogPackets 0x40 

Log binary data of received packets, applied only for Info log level and below.

LogBooks 0x80 

Log updated order book, applied only for Debug log level.

Default TraceToFile | LogPackets | LogBooks 

Default log settings.

Definition at line 55 of file LogSettings.h.