Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
spdlog::sinks::SPDLOG_FINAL< Mutex > Class Template Reference

#include <file_sinks.h>

+ Inheritance diagram for spdlog::sinks::SPDLOG_FINAL< Mutex >:
+ Collaboration diagram for spdlog::sinks::SPDLOG_FINAL< Mutex >:

Public Member Functions

 simple_file_sink (const filename_t &filename, bool truncate=false)
 
void set_force_flush (bool force_flush)
 
 rotating_file_sink (const filename_t &base_filename, std::size_t max_size, std::size_t max_files)
 
 daily_file_sink (const filename_t &base_filename, int rotation_hour, int rotation_minute)
 
 stdout_sink ()
 
 stderr_sink ()
 
- Public Member Functions inherited from spdlog::sinks::base_sink< Mutex >
 base_sink ()
 
virtual ~base_sink ()=default
 
 base_sink (const base_sink &)=delete
 
base_sinkoperator= (const base_sink &)=delete
 
void log (const details::log_msg &msg) SPDLOG_FINAL override
 
void flush () SPDLOG_FINAL override
 
- Public Member Functions inherited from spdlog::sinks::sink
 sink ()
 
virtual ~sink ()
 
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)
 
static std::shared_ptr< MyTypeinstance ()
 
static std::shared_ptr< MyTypeinstance ()
 

Protected Member Functions

void _sink_it (const details::log_msg &msg) override
 
void _flush () override
 
void _sink_it (const details::log_msg &msg) override
 
void _flush () override
 
void _sink_it (const details::log_msg &msg) override
 
void _flush () override
 
void _sink_it (const details::log_msg &msg) override
 
void _flush () override
 
void _sink_it (const details::log_msg &msg) override
 
void _flush () override
 

Private Types

using MyType = stdout_sink<Mutex>
 
using MyType = stderr_sink<Mutex>
 

Private Member Functions

void _rotate ()
 
std::chrono::system_clock::time_point _next_rotation_tp ()
 

Private Attributes

details::file_helper _file_helper
 
bool _force_flush
 
filename_t _base_filename
 
std::size_t _max_size
 
std::size_t _max_files
 
std::size_t _current_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
 

Detailed Description

template<class Mutex>
class spdlog::sinks::SPDLOG_FINAL< Mutex >

Definition at line 29 of file file_sinks.h.

Member Typedef Documentation

◆ MyType [1/2]

template<class Mutex >
using spdlog::sinks::SPDLOG_FINAL< Mutex >::MyType = stdout_sink<Mutex>
private

Definition at line 23 of file stdout_sinks.h.

◆ MyType [2/2]

template<class Mutex >
using spdlog::sinks::SPDLOG_FINAL< Mutex >::MyType = stderr_sink<Mutex>
private

Definition at line 52 of file stdout_sinks.h.

Member Function Documentation

◆ _flush() [1/5]

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_flush ( )
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 49 of file file_sinks.h.

◆ _flush() [2/5]

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_flush ( )
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 110 of file file_sinks.h.

◆ _flush() [3/5]

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_flush ( )
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 222 of file file_sinks.h.

◆ _flush() [4/5]

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_flush ( )
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 39 of file stdout_sinks.h.

◆ _flush() [5/5]

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_flush ( )
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 68 of file stdout_sinks.h.

◆ _next_rotation_tp()

template<class Mutex >
std::chrono::system_clock::time_point spdlog::sinks::SPDLOG_FINAL< Mutex >::_next_rotation_tp ( )
inlineprivate

Definition at line 228 of file file_sinks.h.

◆ _rotate()

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_rotate ( )
inlineprivate

Definition at line 122 of file file_sinks.h.

◆ _sink_it() [1/5]

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_sink_it ( const details::log_msg & msg)
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 43 of file file_sinks.h.

◆ _sink_it() [2/5]

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_sink_it ( const details::log_msg & msg)
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 99 of file file_sinks.h.

◆ _sink_it() [3/5]

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_sink_it ( const details::log_msg & msg)
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 212 of file file_sinks.h.

◆ _sink_it() [4/5]

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_sink_it ( const details::log_msg & msg)
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 33 of file stdout_sinks.h.

◆ _sink_it() [5/5]

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::_sink_it ( const details::log_msg & msg)
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 62 of file stdout_sinks.h.

◆ calc_filename()

template<class Mutex >
static filename_t spdlog::sinks::SPDLOG_FINAL< Mutex >::calc_filename ( const filename_t & filename,
std::size_t index )
inlinestatic

Definition at line 82 of file file_sinks.h.

◆ daily_file_sink()

template<class Mutex >
spdlog::sinks::SPDLOG_FINAL< Mutex >::daily_file_sink ( const filename_t & base_filename,
int rotation_hour,
int rotation_minute )
inline

Definition at line 197 of file file_sinks.h.

◆ instance() [1/2]

template<class Mutex >
static std::shared_ptr< MyType > spdlog::sinks::SPDLOG_FINAL< Mutex >::instance ( )
inlinestatic

Definition at line 27 of file stdout_sinks.h.

◆ instance() [2/2]

template<class Mutex >
static std::shared_ptr< MyType > spdlog::sinks::SPDLOG_FINAL< Mutex >::instance ( )
inlinestatic

Definition at line 56 of file stdout_sinks.h.

◆ rotating_file_sink()

template<class Mutex >
spdlog::sinks::SPDLOG_FINAL< Mutex >::rotating_file_sink ( const filename_t & base_filename,
std::size_t max_size,
std::size_t max_files )
inline

Definition at line 68 of file file_sinks.h.

◆ set_force_flush()

template<class Mutex >
void spdlog::sinks::SPDLOG_FINAL< Mutex >::set_force_flush ( bool force_flush)
inline

Definition at line 37 of file file_sinks.h.

◆ simple_file_sink()

template<class Mutex >
spdlog::sinks::SPDLOG_FINAL< Mutex >::simple_file_sink ( const filename_t & filename,
bool truncate = false )
inlineexplicit

Definition at line 32 of file file_sinks.h.

◆ stderr_sink()

template<class Mutex >
spdlog::sinks::SPDLOG_FINAL< Mutex >::stderr_sink ( )
inline

Definition at line 54 of file stdout_sinks.h.

◆ stdout_sink()

template<class Mutex >
spdlog::sinks::SPDLOG_FINAL< Mutex >::stdout_sink ( )
inline

Definition at line 25 of file stdout_sinks.h.

Member Data Documentation

◆ _base_filename

template<class Mutex >
filename_t spdlog::sinks::SPDLOG_FINAL< Mutex >::_base_filename
private

Definition at line 145 of file file_sinks.h.

◆ _current_size

template<class Mutex >
std::size_t spdlog::sinks::SPDLOG_FINAL< Mutex >::_current_size
private

Definition at line 148 of file file_sinks.h.

◆ _file_helper

template<class Mutex >
details::file_helper spdlog::sinks::SPDLOG_FINAL< Mutex >::_file_helper
private

Definition at line 54 of file file_sinks.h.

◆ _force_flush

template<class Mutex >
bool spdlog::sinks::SPDLOG_FINAL< Mutex >::_force_flush
private

Definition at line 55 of file file_sinks.h.

◆ _max_files

template<class Mutex >
std::size_t spdlog::sinks::SPDLOG_FINAL< Mutex >::_max_files
private

Definition at line 147 of file file_sinks.h.

◆ _max_size

template<class Mutex >
std::size_t spdlog::sinks::SPDLOG_FINAL< Mutex >::_max_size
private

Definition at line 146 of file file_sinks.h.

◆ _rotation_h

template<class Mutex >
int spdlog::sinks::SPDLOG_FINAL< Mutex >::_rotation_h
private

Definition at line 244 of file file_sinks.h.

◆ _rotation_m

template<class Mutex >
int spdlog::sinks::SPDLOG_FINAL< Mutex >::_rotation_m
private

Definition at line 245 of file file_sinks.h.

◆ _rotation_tp

template<class Mutex >
std::chrono::system_clock::time_point spdlog::sinks::SPDLOG_FINAL< Mutex >::_rotation_tp
private

Definition at line 246 of file file_sinks.h.


The documentation for this class was generated from the following files: