Livox SDK API  V2.2.0
spdlog::sinks::daily_file_sink< Mutex, FileNameCalc > Class Template Referencefinal

#include <daily_file_sink.h>

Inheritance diagram for spdlog::sinks::daily_file_sink< Mutex, FileNameCalc >:
spdlog::sinks::base_sink< Mutex > spdlog::sinks::sink

Public Member Functions

 daily_file_sink (filename_t base_filename, int rotation_hour, int rotation_minute, bool truncate=false)
 
const filename_tfilename () const
 
- Public Member Functions inherited from spdlog::sinks::base_sink< Mutex >
 base_sink ()=default
 
 base_sink (const base_sink &)=delete
 
base_sinkoperator= (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 ()=default
 
 sink (std::unique_ptr< spdlog::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)
 

Additional Inherited Members

- Protected Attributes inherited from spdlog::sinks::base_sink< Mutex >
Mutex mutex_
 
- Protected Attributes inherited from spdlog::sinks::sink
level_t level_ {level::trace}
 
std::unique_ptr< spdlog::formatterformatter_ {details::make_unique<spdlog::pattern_formatter>()}
 

Detailed Description

template<typename Mutex, typename FileNameCalc = daily_filename_calculator>
class spdlog::sinks::daily_file_sink< Mutex, FileNameCalc >

Definition at line 47 of file daily_file_sink.h.

Constructor & Destructor Documentation

template<typename Mutex , typename FileNameCalc = daily_filename_calculator>
spdlog::sinks::daily_file_sink< Mutex, FileNameCalc >::daily_file_sink ( filename_t  base_filename,
int  rotation_hour,
int  rotation_minute,
bool  truncate = false 
)
inline

Definition at line 51 of file daily_file_sink.h.

Member Function Documentation

template<typename Mutex , typename FileNameCalc = daily_filename_calculator>
const filename_t& spdlog::sinks::daily_file_sink< Mutex, FileNameCalc >::filename ( ) const
inline

Definition at line 66 of file daily_file_sink.h.

template<typename Mutex , typename FileNameCalc = daily_filename_calculator>
void spdlog::sinks::daily_file_sink< Mutex, FileNameCalc >::flush_ ( )
inlineoverrideprotectedvirtual

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

Definition at line 85 of file daily_file_sink.h.

template<typename Mutex , typename FileNameCalc = daily_filename_calculator>
void spdlog::sinks::daily_file_sink< Mutex, FileNameCalc >::sink_it_ ( const details::log_msg msg)
inlineoverrideprotectedvirtual

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

Definition at line 72 of file daily_file_sink.h.


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