85 , traceFeeds_(other.traceFeeds_)
86 , traceMessages_(other.traceMessages_)
87 , traceBooks_(other.traceBooks_)
104 group_.controlAssignment(
"Trace Feeds", traceFeeds_, status);
113 return traceMessages_;
119 group_.controlAssignment(
"Trace Messages", traceMessages_, tracing);
134 group_.controlAssignment(
"TraceBooks", traceBooks_, status);
157 traceFeeds_ = other.traceFeeds_;
159 traceMessages_ = other.traceMessages_;
161 traceBooks_ = other.traceBooks_;
172#if !defined(ONIXS_CMEMDH_NO_DEPRECATED)
187 toStr(str, settings);
201 return "OnixS.CmeMdpPremiumCppHandlers.log";
208 fileLoggerSettings.
filename(fileName());
210 return fileLoggerSettings;
230 , logger_(other.logger_)
231 , debug_(other.debug_)
293 group().
controlChange(
"Logging Settings", &LoggingSettings::assignNoControl, *
this, other);
312 logger_ = other.logger_;
327 toStr(str, settings);
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_NULLPTR
#define ONIXS_CMEMDH_EXPORTED
Parameters affecting what's logged at a debug level.
MessageTracing::Enum traceMessages() const
Defines the way SBE messages are traced.
~DebugLoggingSettings()
Cleans everything up (if necessary).
bool traceFeeds() const
Defines whether feeds are to be traced.
DebugLoggingSettings(const SettingGroup *group=nullptr)
Initializes default settings.
DebugLoggingSettings & traceMessages(MessageTracing::Enum tracing)
Defines the way SBE messages are traced.
DebugLoggingSettings(const DebugLoggingSettings &other)
Initializes as a copy.
bool traceBooks() const
Indicates whether books are traced.
void assignNoControl(const DebugLoggingSettings &other)
DebugLoggingSettings & operator=(const DebugLoggingSettings &other)
Re-initializes as a copy.
DebugLoggingSettings & traceFeeds(bool status)
Defines whether feeds are to be traced.
DebugLoggingSettings & traceBooks(bool status)
Indicates whether books are traced.
friend class LoggingSettings
Base parameters affecting synchronous logging services.
const std::string & filename() const
Log file name.
The collection of settings affecting use of logging subsystem by the Handler.
LoggingSettings & logger(Logger *logger)
Assigns the given logger to the Handler.
DebugLoggingSettings & debug()
The collection of settings affecting debug-level logging.
LoggingSettings(const LoggingSettings &other)
Initializes as a copy of the other instance.
Logger * logger() const
The Logger instance to be used by the Handler while logging various events.
Logger & loggerOrDefault() const
The Logger instance to be used by the Handler while logging various events.
const DebugLoggingSettings & debug() const
The collection of settings affecting debug-level logging.
LoggingSettings(SettingChangeController *controller=nullptr)
Initializes the instance with the default values.
friend class HandlerSettings
LoggingSettings & operator=(const LoggingSettings &other)
Re-initializes the instance as a copy of the other one.
Base services for settings grouped by a certain criteria.
void controlAssignment(const Char *description, Assignee &assignee, Value value) const
Guarded assignment of the given value to the given variable.
SettingGroup(SettingChangeController *controller=nullptr)
Initializes the group of settings with the given validation services.
void controlChange(const Char *description, void(Changeable::*change)(), Changeable &changeable) const
Guarded invoke of the given routine which assumes complex change or update for the given object.
bool fromStr(Decimal &, const Char *, size_t)
Deserializes a decimal number from the given text presentation.
char Char
Character type alias.
void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
DebugLoggingSettings HandlerDebugLoggingSettings
Provides default functionality for the logging-related services.
static Logger & logger()
Returns an instance of the default logger.
static const char * fileName()
Defines how SBE messages are traced.
Enum
Defines how SBE messages are traced.
@ FixFormat
Messages are traced in FIX tag=value format.
@ SbeFormat
Messages are traced using SBE naming from coding templates for fields and their values.
@ Disabled
Message tracing is disabled.
Represents a service controlling change/update operations for the collections of settings.