#include <file_sinks.h>
Public Member Functions | |
daily_file_sink (const filename_t &base_filename, int rotation_hour, int rotation_minute) | |
rotating_file_sink (const filename_t &base_filename, std::size_t max_size, std::size_t max_files) | |
void | set_force_flush (bool force_flush) |
simple_file_sink (const filename_t &filename, bool truncate=false) | |
stderr_sink () | |
stdout_sink () | |
Public Member Functions inherited from spdlog::sinks::base_sink< Mutex > | |
base_sink () | |
base_sink (const base_sink &)=delete | |
void | flush () SPDLOG_FINAL override |
void | log (const details::log_msg &msg) SPDLOG_FINAL override |
base_sink & | operator= (const base_sink &)=delete |
virtual | ~base_sink ()=default |
Public Member Functions inherited from spdlog::sinks::sink | |
level::level_enum | level () const |
void | set_level (level::level_enum log_level) |
bool | should_log (level::level_enum msg_level) const |
sink () | |
virtual | ~sink () |
Static Public Member Functions | |
static std::shared_ptr< MyType > | instance () |
static std::shared_ptr< MyType > | instance () |
Protected Member Functions | |
void | _flush () override |
void | _flush () override |
void | _flush () override |
void | _flush () override |
void | _flush () override |
void | _sink_it (const details::log_msg &msg) override |
void | _sink_it (const details::log_msg &msg) override |
void | _sink_it (const details::log_msg &msg) override |
void | _sink_it (const details::log_msg &msg) override |
void | _sink_it (const details::log_msg &msg) override |
Private Types | |
using | MyType = stdout_sink< Mutex > |
using | MyType = stderr_sink< Mutex > |
Private Member Functions | |
std::chrono::system_clock::time_point | _next_rotation_tp () |
void | _rotate () |
Static Private Member Functions | |
static filename_t | calc_filename (const filename_t &filename, std::size_t index) |
Private Attributes | |
filename_t | _base_filename |
std::size_t | _current_size |
details::file_helper | _file_helper |
bool | _force_flush |
std::size_t | _max_files |
std::size_t | _max_size |
int | _rotation_h |
int | _rotation_m |
std::chrono::system_clock::time_point | _rotation_tp |
Additional Inherited Members | |
Protected Attributes inherited from spdlog::sinks::base_sink< Mutex > | |
Mutex | _mutex |
Definition at line 29 of file file_sinks.h.
|
private |
Definition at line 23 of file stdout_sinks.h.
|
private |
Definition at line 52 of file stdout_sinks.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 39 of file stdout_sinks.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 49 of file file_sinks.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 68 of file stdout_sinks.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 93 of file file_sinks.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 211 of file file_sinks.h.
|
inlineprivate |
Definition at line 217 of file file_sinks.h.
|
inlineprivate |
Definition at line 115 of file file_sinks.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 33 of file stdout_sinks.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 43 of file file_sinks.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 62 of file stdout_sinks.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 82 of file file_sinks.h.
|
inlineoverrideprotectedvirtual |
Implements spdlog::sinks::base_sink< Mutex >.
Definition at line 201 of file file_sinks.h.
|
inlinestaticprivate |
Definition at line 99 of file file_sinks.h.
|
inline |
Definition at line 186 of file file_sinks.h.
|
inlinestatic |
Definition at line 27 of file stdout_sinks.h.
|
inlinestatic |
Definition at line 56 of file stdout_sinks.h.
|
inline |
Definition at line 68 of file file_sinks.h.
|
inline |
Definition at line 37 of file file_sinks.h.
|
inlineexplicit |
Definition at line 32 of file file_sinks.h.
|
inline |
Definition at line 54 of file stdout_sinks.h.
|
inline |
Definition at line 25 of file stdout_sinks.h.
|
private |
Definition at line 138 of file file_sinks.h.
|
private |
Definition at line 141 of file file_sinks.h.
|
private |
Definition at line 54 of file file_sinks.h.
|
private |
Definition at line 55 of file file_sinks.h.
|
private |
Definition at line 140 of file file_sinks.h.
|
private |
Definition at line 139 of file file_sinks.h.
|
private |
Definition at line 233 of file file_sinks.h.
|
private |
Definition at line 234 of file file_sinks.h.
|
private |
Definition at line 235 of file file_sinks.h.