neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::logger::i_logger Class Referenceabstract

#include <i_logger.hpp>

Inheritance diagram for neolib::logger::i_logger:
neolib::services::i_service neolib::logger::logger< 0u > neolib::logger::logger< Instance > neolib::logger::basic_ostream_logger< Instance, CharT, Traits >

Classes

struct  no_formatter
 

Public Member Functions

virtual ~i_logger ()=default
 
virtual void copy_to (i_logger &aLogger)=0
 
virtual void cancel_copy_to (i_logger &aLogger)=0
 
virtual bool has_logging_thread () const =0
 
virtual void create_logging_thread ()=0
 
virtual severity filter_severity () const =0
 
virtual void set_filter_severity (severity aSeverity)=0
 
virtual void register_category (category_id aId, i_string const &aName)=0
 
virtual bool category_enabled (category_id aId) const =0
 
virtual void enable_category (category_id aId)=0
 
virtual void disable_category (category_id aId)=0
 
virtual bool has_formatter () const =0
 
virtual i_formatterformatter () const =0
 
virtual void set_formatter (i_formatter &aFormatter)=0
 
virtual void clear_formatter ()=0
 
virtual line_id_t line_id () const =0
 
virtual void reset_line_id (line_id_t aLineId=DefaultInitialLineId)=0
 
virtual i_loggeroperator<< (severity aSeverity)=0
 
virtual i_loggeroperator<< (category_id aCategory)=0
 
template<typename IdType >
void register_category (IdType aId, std::string const &aName={})
 
template<typename IdType >
void category_enabled (IdType aId)
 
template<typename IdType >
void enable_category (IdType aId)
 
template<typename IdType >
void disable_category (IdType aId)
 
i_loggeroperator<< (category aCategory)
 
i_loggeroperator<< (endl_t)
 
i_loggeroperator<< (flush_t)
 
template<typename T >
i_loggeroperator<< (T const &aValue)
 
virtual void commit ()=0
 
virtual void wait () const =0
 
- Public Member Functions inherited from neolib::services::i_service
virtual ~i_service ()=default
 

Protected Member Functions

virtual void flush (i_string const &aMessage)=0
 

Friends

template<std::size_t Instance>
class logger
 

Detailed Description

Definition at line 131 of file i_logger.hpp.

Constructor & Destructor Documentation

◆ ~i_logger()

virtual neolib::logger::i_logger::~i_logger ( )
virtualdefault

Member Function Documentation

◆ cancel_copy_to()

virtual void neolib::logger::i_logger::cancel_copy_to ( i_logger aLogger)
pure virtual

◆ category_enabled() [1/2]

virtual bool neolib::logger::i_logger::category_enabled ( category_id  aId) const
pure virtual

◆ category_enabled() [2/2]

template<typename IdType >
void neolib::logger::i_logger::category_enabled ( IdType  aId)
inline

Definition at line 172 of file i_logger.hpp.

◆ clear_formatter()

virtual void neolib::logger::i_logger::clear_formatter ( )
pure virtual

◆ commit()

virtual void neolib::logger::i_logger::commit ( )
pure virtual

◆ copy_to()

virtual void neolib::logger::i_logger::copy_to ( i_logger aLogger)
pure virtual

◆ create_logging_thread()

virtual void neolib::logger::i_logger::create_logging_thread ( )
pure virtual

◆ disable_category() [1/2]

◆ disable_category() [2/2]

template<typename IdType >
void neolib::logger::i_logger::disable_category ( IdType  aId)
inline

Definition at line 182 of file i_logger.hpp.

◆ enable_category() [1/2]

◆ enable_category() [2/2]

template<typename IdType >
void neolib::logger::i_logger::enable_category ( IdType  aId)
inline

Definition at line 177 of file i_logger.hpp.

◆ filter_severity()

virtual severity neolib::logger::i_logger::filter_severity ( ) const
pure virtual

◆ flush()

virtual void neolib::logger::i_logger::flush ( i_string const aMessage)
protectedpure virtual

◆ formatter()

virtual i_formatter & neolib::logger::i_logger::formatter ( ) const
pure virtual

◆ has_formatter()

virtual bool neolib::logger::i_logger::has_formatter ( ) const
pure virtual

◆ has_logging_thread()

virtual bool neolib::logger::i_logger::has_logging_thread ( ) const
pure virtual

◆ line_id()

virtual line_id_t neolib::logger::i_logger::line_id ( ) const
pure virtual

◆ operator<<() [1/6]

i_logger & neolib::logger::i_logger::operator<< ( category  aCategory)
inline

Definition at line 187 of file i_logger.hpp.

◆ operator<<() [2/6]

◆ operator<<() [3/6]

i_logger & neolib::logger::i_logger::operator<< ( endl_t  )
inline

Definition at line 191 of file i_logger.hpp.

◆ operator<<() [4/6]

i_logger & neolib::logger::i_logger::operator<< ( flush_t  )
inline

Definition at line 199 of file i_logger.hpp.

◆ operator<<() [5/6]

virtual i_logger & neolib::logger::i_logger::operator<< ( severity  aSeverity)
pure virtual

◆ operator<<() [6/6]

template<typename T >
i_logger & neolib::logger::i_logger::operator<< ( T const aValue)
inline

Definition at line 208 of file i_logger.hpp.

◆ register_category() [1/2]

virtual void neolib::logger::i_logger::register_category ( category_id  aId,
i_string const aName 
)
pure virtual

◆ register_category() [2/2]

template<typename IdType >
void neolib::logger::i_logger::register_category ( IdType  aId,
std::string const aName = {} 
)
inline

Definition at line 167 of file i_logger.hpp.

◆ reset_line_id()

virtual void neolib::logger::i_logger::reset_line_id ( line_id_t  aLineId = DefaultInitialLineId)
pure virtual

◆ set_filter_severity()

virtual void neolib::logger::i_logger::set_filter_severity ( severity  aSeverity)
pure virtual

◆ set_formatter()

virtual void neolib::logger::i_logger::set_formatter ( i_formatter aFormatter)
pure virtual

◆ wait()

virtual void neolib::logger::i_logger::wait ( ) const
pure virtual

Friends And Related Symbol Documentation

◆ logger

template<std::size_t Instance>
friend class logger
friend

Definition at line 134 of file i_logger.hpp.


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