38 , fileSizeLimit_(2145386496)
71 return fileSizeLimit_;
77 fileSizeLimit_ = value;
111 std::string filename_;
176 Workhorse* workhorse_;
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
#define ONIXS_CMEMDH_EXPORTED_CLASS_DECL(typeName)
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_NULLPTR
#define ONIXS_CMEMDH_EXPORTED
#define ONIXS_CMEMDH_OVERRIDE
Base parameters affecting synchronous logging services.
void severityLevel(LogSeverity::Enum value)
Specifies whether logger should output its events and which of events should be put into the log.
const std::string & filename() const
Log file name.
LogSeverity::Enum severityLevel() const
Specifies whether the logger should output events and which of events should be put into the log.
void filename(const std::string &value)
Updates log file name.
UInt64 fileSizeLimit() const
Log file size limit (in bytes).
FileLoggerSettings()
Initializes parameters with default values.
void watch(WatchService &watch)
Watch service used by logger while assigning timestamps to log entries.
~FileLoggerSettings()
Cleans everything up.
WatchService & watch() const
Watch service used by logger while assigning timestamps to log entries.
void fileSizeLimit(UInt64 value)
Sets logFileSizeLimit.
Implements logging services to put logged data into a regular file.
void info(std::string &) override
Basic information on the implementation of the logging services.
~FileLogger() override
Disposes logging machinery.
std::string rollover()
Rolls over current log and starts recording a new chunk.
LogEntry * addEntry(LogSeverity::Enum) override
Adds a new entry into the log.
FileLogger(const FileLoggerSettings &, FileLoggerListener *=nullptr)
Initializes logger according to given settings.
const FileLoggerSettings & settings() const
Configuration of given logger instance.
Abstraction of log entry in logging services.
Logger()
Only descendants are to be created.
std::string makeLogFilename(UInt32)
Makes filename for log file for the given channel.
char Char
Character type alias.
Collection of events raised by FileLogger during its life time.
virtual void onFileLoggerIssue(const FileLogger &, const Char *)
Invoked by FileLogger in case of issue.
Defines severity levels for log entries.