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);
142 group_.controlChange(
"Debug Logging Settings", &DebugLoggingSettings::assignNoControl, *
this, other);
157 traceFeeds_ = other.traceFeeds_;
159 traceMessages_ = other.traceMessages_;
161 traceBooks_ = other.traceBooks_;
172 #if !defined(ONIXS_CMEMDH_NO_DEPRECATED) 176 #endif // 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_)
262 group().
controlAssignment(
"Logger", logger_, logger ? logger : &LoggingDefaults::logger());
293 group().
controlChange(
"Logging Settings", &LoggingSettings::assignNoControl, *
this, other);
312 logger_ = other.logger_;
327 toStr(str, settings);
bool traceFeeds() const
Defines whether feeds are to be traced.
Defines how SBE messages are traced.
LoggingSettings(SettingChangeController *controller=nullptr)
Initializes the instance with the default values.
Handler's configuration settings.
bool traceBooks() const
Indicates whether books are traced.
Provides default functionality for the logging-related services.
#define ONIXS_CMEMDH_NULLPTR
Base parameters affecting synchronous logging services.
Enum
Defines how SBE messages are traced.
DebugLoggingSettings & traceBooks(bool status)
Indicates whether books are traced.
DebugLoggingSettings & operator=(const DebugLoggingSettings &other)
Re-initializes as a copy.
const DebugLoggingSettings & debug() const
The collection of settings affecting debug-level logging.
The collection of settings affecting use of logging subsystem by the Handler.
#define ONIXS_CMEMDH_LTWT
~DebugLoggingSettings()
Cleans everything up (if necessary).
void controlAssignment(const Char *description, Assignee &assignee, Value value) const
Guarded assignment of the given value to the given variable.
Parameters affecting what's logged at a debug level.
char Char
Character type alias.
const std::string & filename() const
Log file name.
UInt32 Base
Integral type used as basement for constants.
Message tracing is disabled.
LoggingSettings & operator=(const LoggingSettings &other)
Re-initializes the instance as a copy of the other one.
static const char * fileName()
DebugLoggingSettings(const SettingGroup *group=nullptr)
Initializes default settings.
LoggingSettings(const LoggingSettings &other)
Initializes as a copy of the other instance.
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
bool fromStr(MessageTracing::Enum &, const Char *, size_t)
Deserializes message tracing constant from a string.
std::string toStr(const LoggingSettings &settings)
Serializes Handler debug logging settings into a string.
Base services for settings grouped by a certain criteria.
DebugLoggingSettings & traceFeeds(bool status)
Defines whether feeds are to be traced.
LoggingSettings & logger(Logger *logger)
Assigns the given logger to the Handler.
Logger * logger() const
The Logger instance to be used by the Handler while logging various events.
DebugLoggingSettings & debug()
The collection of settings affecting debug-level logging.
#define ONIXS_CMEMDH_EXPORTED
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
DebugLoggingSettings & traceMessages(MessageTracing::Enum tracing)
Defines the way SBE messages are traced.
Represents a service controlling change/update operations for the collections of settings.
Messages are traced using SBE naming from coding templates for fields and their values.
DebugLoggingSettings HandlerDebugLoggingSettings
MessageTracing::Enum traceMessages() const
Defines the way SBE messages are traced.
void assignNoControl(const DebugLoggingSettings &other)
DebugLoggingSettings(const DebugLoggingSettings &other)
Initializes as a copy.
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...
Logger & loggerOrDefault() const
The Logger instance to be used by the Handler while logging various events.
#define ONIXS_CMEMDH_NAMESPACE_END