60 ologger(
const std::string& path,
61 const std::string& file_prefix,
62 const std::string& file_suffix,
83 parent_.prefix_message();
84 start_of_line_ =
false;
87 parent_.log_stream_ <<
data;
109 if (start_of_line_) {
110 parent_.prefix_message();
111 start_of_line_ =
false;
113 parent_.log_stream_ <<
data;
134 if (start_of_line_) {
135 parent_.prefix_message();
136 start_of_line_ =
false;
138 parent_.log_stream_ <<
data;
151 size_t changeover_if_required();
153 void prefix_message();
154 void make_logger(
const std::string& path,
const std::string& file_prefix,
const std::string& file_suffix);
156 const std::string path_;
157 const std::string file_prefix_;
158 const std::string file_suffix_;
159 size_t max_file_size_;
163 std::fstream log_stream_;
Debug & operator<<(const T &data)
Error & operator<<(const T &data)
Info & operator<<(const T &data)
ologger(const ologger &)=delete
ologger & operator=(ologger &&)=delete
std::ostream &(std::ostream &) endl_type
ologger(const std::string &path, const std::string &file_prefix, const std::string &file_suffix, size_t max_file_size, size_t max_files, log_level level=log_level::LOG_NONE)
ologger & operator=(const ologger &)=delete
ologger(ologger &&)=delete