85 , traceFeeds_(other.traceFeeds_)
86 , traceMessages_(other.traceMessages_)
87 , traceBooks_(other.traceBooks_)
106 group_.controlAssignment(
"Trace Feeds", traceFeeds_, status);
115 return traceMessages_;
123 group_.controlAssignment(
"Trace Messages", traceMessages_, tracing);
140 group_.controlAssignment(
"TraceBooks", traceBooks_, status);
165 traceFeeds_ = other.traceFeeds_;
167 traceMessages_ = other.traceMessages_;
169 traceBooks_ = other.traceBooks_;
180#if !defined(ONIXS_CMEMDH_NO_DEPRECATED)
182typedef DebugLoggingSettings HandlerDebugLoggingSettings;
195 toStr(str, settings);
209 return "OnixS.CmeMdpPremiumCppHandlers.log";
216 fileLoggerSettings.
filename(fileName());
218 return fileLoggerSettings;
238 , logger_(other.logger_)
239 , debug_(other.debug_)
297 group().
controlChange(
"Logging Settings", &LoggingSettings::assignNoControl, *
this, other);
316 logger_ = other.logger_;
331 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_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)
DebugLoggingSettings(const DebugLoggingSettings &other)
Initializes as a copy.
void assignNoControl(const DebugLoggingSettings &other)
DebugLoggingSettings & operator=(const DebugLoggingSettings &other)
DebugLoggingSettings & traceFeeds(bool status)
DebugLoggingSettings & traceBooks(bool status)
friend class LoggingSettings
Base parameters affecting synchronous logging services.
const std::string & filename() const
Defines the interface for creating and submitting log entries.
LoggingSettings & logger(Logger *logger)
Selects the logger to be used by the Handler.
DebugLoggingSettings & debug()
LoggingSettings(const LoggingSettings &other)
Initializes as a copy of the other instance.
Logger * logger() const
Returns the custom logger selected for the Handler.
Logger & loggerOrDefault() const
Returns the effective logger selected for the Handler.
const DebugLoggingSettings & debug() const
LoggingSettings(SettingChangeController *controller=nullptr)
Initializes the instance with the default values.
friend class HandlerSettings
LoggingSettings & operator=(const LoggingSettings &other)
Associates setting mutations with a change controller.
SettingGroup(SettingChangeController *controller=nullptr)
Creates a setting group that uses the specified controller.
void controlChange(const Messaging::Char *description, void(Changeable::*change)(), Changeable &changeable) const
Invokes a zero-argument member function as a guarded change.
void controlAssignment(const Messaging::Char *description, Assignee &assignee, Value value) const
Assigns a value while coordinating the change with the controller.
std::uint32_t UInt32
uInt32.
char Char
Character type alias.
void fromStr(NifList &, const std::string &, const std::string &=std::string("; ,"))
void toStr(std::string &str, BookState::Enum bookState)
Appends a string representation of a book state.
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.
Messaging::UInt32 Base
Integral type used as basement for constants.
Coordinates changes to settings that belong to a setting group.