Detailed Description

Definition at line 32 of file logger.h.

Public Member Functions

 logger (sink_ptr single_sink)
 
 logger (const logger &)=delete
 
loggeroperator= (const logger &)=delete
 
bool should_log (logging::level::level_enum) const
 
void set_level (logging::level::level_enum)
 
logging::level::level_enum level () const
 
void set_formatter (formatter_ptr)
 
void flush_on (logging::level::level_enum log_level)
 
virtual void flush ()
 
const std::vector< sink_ptr > & sinks () const
 
template<typename T >
void log (logging::level::level_enum lvl, T &&)
 

Protected Member Functions

virtual void _sink_it (details::log_msg &)
 
bool _should_flush_on (const details::log_msg &)
 return true if the given message level should trigger a flush
 

Protected Attributes

std::vector< sink_ptr > _sinks
 
formatter_ptr _formatter
 
level_t _level
 
level_t _flush_level
 
std::atomic_size_t _index
 

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