66 std::string log_file,
bool flush_buffer);
82 std::mutex mtx_file_stream;
83 std::mutex mtx_log_file;
85 std::ofstream file_stream;
89 void write_message(
const std::string &msg);
95 void config_changed();
std::string datetime_pattern
Definition: sink.h:141
Main namespace for ealogger.
Definition: conversion_pattern.h:28
A sink is an object that writes the log message to a specific target.
Definition: sink.h:52
bool enabled
Definition: sink.h:142
std::string msg_template
Definition: sink.h:140
void set_log_file(std::string log_file)
Set log file.
Definition: sink_file.cpp:34
Sink to write to a log file.
Definition: sink_file.h:41
SinkFile(std::string msg_template, std::string datetime_pattern, bool enabled, ealogger::constants::LOG_LEVEL min_lvl, std::string log_file, bool flush_buffer)
SinkFile constructor with additional parameters.
Definition: sink_file.cpp:21
LOG_LEVEL
An enumaration representing the supported loglevels.
Definition: global.h:58