|
spdlog
|
Definition at line 22 of file rotating_file_sink.h.
#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, bool rotate_on_open=false) | |
| filename_t | filename () |
| 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 |
| void | set_level (level::level_enum log_level) |
| level::level_enum | level () const |
| bool | should_log (level::level_enum msg_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 |
| virtual void | set_pattern_ (const std::string &pattern) |
| virtual void | set_formatter_ (std::unique_ptr< spdlog::formatter > sink_formatter) |
Protected Attributes | |
| std::unique_ptr< spdlog::formatter > | formatter_ |
| Mutex | mutex_ |
| level_t | level_ {level::trace} |
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_ |
| SPDLOG_INLINE spdlog::sinks::rotating_file_sink< Mutex >::rotating_file_sink | ( | filename_t | base_filename, |
| std::size_t | max_size, | ||
| std::size_t | max_files, | ||
| bool | rotate_on_open = false |
||
| ) |
Definition at line 27 of file rotating_file_sink-inl.h.
|
static |
Definition at line 44 of file rotating_file_sink-inl.h.
| SPDLOG_INLINE filename_t spdlog::sinks::rotating_file_sink< Mutex >::filename | ( | ) |
Definition at line 57 of file rotating_file_sink-inl.h.
|
finalvirtualinherited |
Implements spdlog::sinks::sink.
Definition at line 33 of file base_sink-inl.h.
|
overrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 78 of file rotating_file_sink-inl.h.
|
inherited |
Definition at line 22 of file sink-inl.h.
|
finalvirtualinherited |
Implements spdlog::sinks::sink.
Definition at line 26 of file base_sink-inl.h.
|
private |
Definition at line 123 of file rotating_file_sink-inl.h.
|
private |
Definition at line 89 of file rotating_file_sink-inl.h.
|
finalvirtualinherited |
Implements spdlog::sinks::sink.
Definition at line 47 of file base_sink-inl.h.
|
protectedvirtualinherited |
Reimplemented in spdlog::sinks::dist_sink< Mutex >.
Definition at line 60 of file base_sink-inl.h.
|
inherited |
Definition at line 17 of file sink-inl.h.
|
finalvirtualinherited |
Implements spdlog::sinks::sink.
Definition at line 40 of file base_sink-inl.h.
|
protectedvirtualinherited |
Reimplemented in spdlog::sinks::dist_sink< Mutex >.
Definition at line 54 of file base_sink-inl.h.
|
inherited |
Definition at line 12 of file sink-inl.h.
|
overrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 64 of file rotating_file_sink-inl.h.
|
private |
Definition at line 45 of file rotating_file_sink.h.
|
private |
Definition at line 48 of file rotating_file_sink.h.
|
private |
Definition at line 49 of file rotating_file_sink.h.
|
protectedinherited |
Definition at line 39 of file base_sink.h.
|
protectedinherited |
|
private |
Definition at line 47 of file rotating_file_sink.h.
|
private |
Definition at line 46 of file rotating_file_sink.h.
|
mutableprotectedinherited |
Definition at line 40 of file base_sink.h.