neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::logger::basic_ostream_logger< Instance, CharT, Traits > Class Template Reference

#include <ostream_logger.hpp>

Inheritance diagram for neolib::logger::basic_ostream_logger< Instance, CharT, Traits >:
neolib::logger::logger< Instance > neolib::logger::i_logger neolib::lifetime< Base > neolib::services::i_service neolib::i_lifetime

Public Member Functions

 basic_ostream_logger (std::basic_ostream< CharT, Traits > &aStream)
 
 ~basic_ostream_logger ()
 
void finalize ()
 
- Public Member Functions inherited from neolib::logger::logger< Instance >
 logger ()
 
 ~logger ()
 
void copy_to (i_logger &aLogger) final
 
void cancel_copy_to (i_logger &aLogger) final
 
bool has_logging_thread () const final
 
void create_logging_thread () final
 
severity filter_severity () const final
 
void set_filter_severity (severity aSeverity) final
 
void register_category (category_id aId, i_string const &aName) final
 
bool category_enabled (category_id aId) const final
 
void enable_category (category_id aId) final
 
void disable_category (category_id aId) final
 
bool has_formatter () const final
 
i_formatterformatter () const final
 
void set_formatter (i_formatter &aFormatter) final
 
void clear_formatter () final
 
line_id_t line_id () const final
 
void reset_line_id (line_id_t aLineId=DefaultInitialLineId) final
 
i_loggeroperator<< (severity aSeverity) final
 
i_loggeroperator<< (category_id aCategory) final
 
void commit () override
 
void wait () const final
 
virtual void register_category (category_id aId, i_string const &aName)=0
 
template<typename IdType >
void register_category (IdType aId, std::string const &aName={})
 
virtual bool category_enabled (category_id aId) const=0
 
template<typename IdType >
void category_enabled (IdType aId)
 
virtual void enable_category (category_id aId)=0
 
template<typename IdType >
void enable_category (IdType aId)
 
virtual void disable_category (category_id aId)=0
 
template<typename IdType >
void disable_category (IdType aId)
 
virtual i_loggeroperator<< (severity aSeverity)=0
 
virtual i_loggeroperator<< (category_id aCategory)=0
 
i_loggeroperator<< (category aCategory)
 
i_loggeroperator<< (endl_t)
 
i_loggeroperator<< (flush_t)
 
template<typename T >
i_loggeroperator<< (T const &aValue)
 
- Public Member Functions inherited from neolib::logger::i_logger
virtual ~i_logger ()=default
 
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)
 
- Public Member Functions inherited from neolib::services::i_service
virtual ~i_service ()=default
 
- Public Member Functions inherited from neolib::lifetime< Base >
 lifetime (lifetime_state aState=lifetime_state::Alive)
 
virtual ~lifetime ()
 
lifetime_state object_state () const final
 
std::shared_ptr< std::atomic< lifetime_state > > object_state_ptr () const final
 
bool is_creating () const final
 
bool is_alive () const final
 
bool is_destroying () const final
 
bool is_destroyed () const final
 
void set_alive () override
 
void set_destroying () override
 
void set_destroyed () override
 
- Public Member Functions inherited from neolib::i_lifetime
virtual ~i_lifetime ()=default
 

Protected Member Functions

void commit (buffer_t const &aBuffer) override
 
- Protected Member Functions inherited from neolib::logger::logger< Instance >
std::recursive_mutex & mutex () const
 
std::mutex & commit_signal_mutex () const
 
std::condition_variable & commit_signal () const
 
void join_logging_thread ()
 
severity message_severity () const
 
void set_message_severity (severity aMessageSeverity)
 
category_id message_category () const
 
void set_message_category (category_id aid)
 
bool message_category_enabled () const
 
void flush (i_string const &aMessage) final
 
void finalize ()
 

Additional Inherited Members

- Public Types inherited from neolib::lifetime< Base >
typedef neolib::destroyed_flag destroyed_flag
 
- Static Public Member Functions inherited from neolib::logger::logger< Instance >
static uuid constiid ()
 

Detailed Description

template<uint32_t Instance = 0u, typename CharT = char, typename Traits = std::char_traits<CharT>>
class neolib::logger::basic_ostream_logger< Instance, CharT, Traits >

Definition at line 47 of file ostream_logger.hpp.

Constructor & Destructor Documentation

◆ basic_ostream_logger()

template<uint32_t Instance = 0u, typename CharT = char, typename Traits = std::char_traits<CharT>>
neolib::logger::basic_ostream_logger< Instance, CharT, Traits >::basic_ostream_logger ( std::basic_ostream< CharT, Traits > &  aStream)
inline

Definition at line 53 of file ostream_logger.hpp.

◆ ~basic_ostream_logger()

template<uint32_t Instance = 0u, typename CharT = char, typename Traits = std::char_traits<CharT>>
neolib::logger::basic_ostream_logger< Instance, CharT, Traits >::~basic_ostream_logger ( )
inline

Definition at line 57 of file ostream_logger.hpp.

Member Function Documentation

◆ commit()

template<uint32_t Instance = 0u, typename CharT = char, typename Traits = std::char_traits<CharT>>
void neolib::logger::basic_ostream_logger< Instance, CharT, Traits >::commit ( buffer_t const aBuffer)
inlineoverrideprotectedvirtual

Implements neolib::logger::logger< Instance >.

Definition at line 64 of file ostream_logger.hpp.

◆ finalize()

template<uint32_t Instance = 0u, typename CharT = char, typename Traits = std::char_traits<CharT>>
void neolib::logger::logger< Instance >::finalize ( )
inline

Definition at line 317 of file logger.hpp.


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