#include <rotating_file_sink.h>
Public Member Functions | |
| rotating_file_sink (filename_t base_filename, std::size_t max_size, std::size_t max_files) | |
Public Member Functions inherited from spdlog::sinks::base_sink< Mutex > | |
| base_sink ()=default | |
| base_sink (const base_sink &)=delete | |
| base_sink & | operator= (const base_sink &)=delete |
| void | log (const details::log_msg &msg) final |
| void | flush () final |
| void | set_pattern (const std::string &pattern) final |
| void | set_formatter (std::unique_ptr< spdlog::formatter > sink_formatter) final |
Public Member Functions inherited from spdlog::sinks::sink | |
| sink () | |
| sink (std::unique_ptr< spdlog::pattern_formatter > formatter) | |
| virtual | ~sink ()=default |
| bool | should_log (level::level_enum msg_level) const |
| void | set_level (level::level_enum log_level) |
| level::level_enum | level () const |
Static Public Member Functions | |
| static filename_t | calc_filename (const filename_t &filename, std::size_t index) |
Protected Member Functions | |
| void | sink_it_ (const details::log_msg &msg) override |
| void | flush_ () override |
Protected Member Functions inherited from spdlog::sinks::base_sink< Mutex > | |
| virtual void | set_pattern_ (const std::string &pattern) |
| virtual void | set_formatter_ (std::unique_ptr< spdlog::formatter > sink_formatter) |
Private Member Functions | |
| void | rotate_ () |
| bool | rename_file (const filename_t &src_filename, const filename_t &target_filename) |
Private Attributes | |
| filename_t | base_filename_ |
| std::size_t | max_size_ |
| std::size_t | max_files_ |
| std::size_t | current_size_ |
| details::file_helper | file_helper_ |
Additional Inherited Members | |
Protected Attributes inherited from spdlog::sinks::base_sink< Mutex > | |
| Mutex | mutex_ |
Protected Attributes inherited from spdlog::sinks::sink | |
| level_t | level_ |
| std::unique_ptr< spdlog::formatter > | formatter_ |
Definition at line 31 of file rotating_file_sink.h.
|
inline |
Definition at line 34 of file rotating_file_sink.h.
|
inlinestatic |
Definition at line 45 of file rotating_file_sink.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 75 of file rotating_file_sink.h.
|
inlineprivate |
Definition at line 119 of file rotating_file_sink.h.
|
inlineprivate |
Definition at line 86 of file rotating_file_sink.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 62 of file rotating_file_sink.h.
|
private |
Definition at line 126 of file rotating_file_sink.h.
|
private |
Definition at line 129 of file rotating_file_sink.h.
|
private |
Definition at line 130 of file rotating_file_sink.h.
|
private |
Definition at line 128 of file rotating_file_sink.h.
|
private |
Definition at line 127 of file rotating_file_sink.h.
1.8.11