Agora
1.2.0
Agora project
|
Go to the documentation of this file.
21 template<
typename Mutex>
62 template<
typename Factory = spdlog::synchronous_factory>
64 size_t max_files,
bool rotate_on_open =
false,
const file_event_handlers &event_handlers = {})
66 return Factory::template create<sinks::rotating_file_sink_mt>(
67 logger_name,
filename, max_file_size, max_files, rotate_on_open, event_handlers);
70 template<
typename Factory = spdlog::synchronous_factory>
72 size_t max_files,
bool rotate_on_open =
false,
const file_event_handlers &event_handlers = {})
74 return Factory::template create<sinks::rotating_file_sink_st>(
75 logger_name,
filename, max_file_size, max_files, rotate_on_open, event_handlers);
79 #ifdef SPDLOG_HEADER_ONLY
std::size_t max_size_
Definition: rotating_file_sink.h:47
std::shared_ptr< logger > rotating_logger_mt(const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files, bool rotate_on_open=false, const file_event_handlers &event_handlers={})
Definition: rotating_file_sink.h:63
bool rename_file_(const filename_t &src_filename, const filename_t &target_filename)
Definition: rotating_file_sink-inl.h:144
filename_t filename()
Definition: rotating_file_sink-inl.h:68
filename_t base_filename_
Definition: rotating_file_sink.h:46
Definition: file_helper.h:16
rotating_file_sink(filename_t base_filename, std::size_t max_size, std::size_t max_files, bool rotate_on_open=false, const file_event_handlers &event_handlers={})
Definition: rotating_file_sink-inl.h:27
index
Definition: parse_all_dl.m:11
filename
Definition: parse_all_dl.m:14
static filename_t calc_filename(const filename_t &filename, std::size_t index)
Definition: rotating_file_sink-inl.h:55
Definition: base_sink.h:19
std::shared_ptr< logger > rotating_logger_st(const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files, bool rotate_on_open=false, const file_event_handlers &event_handlers={})
Definition: rotating_file_sink.h:71
void flush_() override
Definition: rotating_file_sink-inl.h:98
void rotate_()
Definition: rotating_file_sink-inl.h:109
Definition: rotating_file_sink.h:22
void sink_it_(const details::log_msg &msg) override
Definition: rotating_file_sink-inl.h:75
std::size_t current_size_
Definition: rotating_file_sink.h:49
std::string filename_t
Definition: common.h:122
details::file_helper file_helper_
Definition: rotating_file_sink.h:50
std::size_t max_files_
Definition: rotating_file_sink.h:48