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
~DebugLoggingSettings()
Cleans everything up (if necessary).
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.
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
LoggingSettings & logger(Logger *logger)
DebugLoggingSettings & debug()
LoggingSettings(const LoggingSettings &other)
Initializes as a copy of the other instance.
Logger & loggerOrDefault() const
const DebugLoggingSettings & debug() const
LoggingSettings(SettingChangeController *controller=nullptr)
Initializes the instance with the default values.
friend class HandlerSettings
LoggingSettings & operator=(const LoggingSettings &other)
Base services for settings grouped by a certain criteria.
void controlAssignment(const Char *description, Assignee &assignee, Value value) const
SettingGroup(SettingChangeController *controller=nullptr)
void controlChange(const Char *description, void(Changeable::*change)(), Changeable &changeable) const
bool fromStr(Decimal &, const Char *, size_t)
char Char
Character type alias.
void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
DebugLoggingSettings HandlerDebugLoggingSettings
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.
@ Disabled
Message tracing is disabled.