#include <daily_file_sink.h>
Public Member Functions | |
daily_file_sink (filename_t base_filename, int rotation_hour, int rotation_minute, bool truncate=false) | |
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 |
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 | |
tm | now_tm (log_clock::time_point tp) |
log_clock::time_point | next_rotation_tp_ () |
Private Attributes | |
filename_t | base_filename_ |
int | rotation_h_ |
int | rotation_m_ |
log_clock::time_point | rotation_tp_ |
details::file_helper | file_helper_ |
bool | truncate_ |
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 47 of file daily_file_sink.h.
|
inline |
Definition at line 51 of file daily_file_sink.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 80 of file daily_file_sink.h.
|
inlineprivate |
Definition at line 92 of file daily_file_sink.h.
|
inlineprivate |
Definition at line 86 of file daily_file_sink.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 67 of file daily_file_sink.h.
|
private |
Definition at line 107 of file daily_file_sink.h.
|
private |
Definition at line 111 of file daily_file_sink.h.
|
private |
Definition at line 108 of file daily_file_sink.h.
|
private |
Definition at line 109 of file daily_file_sink.h.
|
private |
Definition at line 110 of file daily_file_sink.h.
|
private |
Definition at line 112 of file daily_file_sink.h.