LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Logging::ConsoleSink Class Reference

#include <logging.hpp>

Inherits LiteFX::Logging::ISink.

Classes

class  ConsoleSinkImpl
 

Public Member Functions

 ConsoleSink (const LogLevel &level=LogLevel::Info, const String &pattern="%+")
 
 ConsoleSink (const ConsoleSink &)=delete
 
 ConsoleSink (ConsoleSink &&)=delete
 
virtual ~ConsoleSink () noexcept
 
virtual LogLevel getLevel () const override
 Gets the minimum log level for messages to get written to the log. More...
 
virtual String getName () const override
 Gets the name of the sink. More...
 
virtual String getPattern () const override
 Gets the pattern used to format the messages for the sink. More...
 
virtual LogLevel getLevel () const =0
 Gets the minimum log level for messages to get written to the log. More...
 
virtual String getName () const =0
 Gets the name of the sink. More...
 
virtual String getPattern () const =0
 Gets the pattern used to format the messages for the sink. More...
 

Protected Member Functions

virtual spdlog::sink_ptr get () const override
 
virtual spdlog::sink_ptr get () const =0
 

Constructor & Destructor Documentation

◆ ConsoleSink() [1/3]

ConsoleSink::ConsoleSink ( const LogLevel &  level = LogLevel::Info,
const String pattern = "%+" 
)

◆ ConsoleSink() [2/3]

LiteFX::Logging::ConsoleSink::ConsoleSink ( const ConsoleSink )
delete

◆ ConsoleSink() [3/3]

LiteFX::Logging::ConsoleSink::ConsoleSink ( ConsoleSink &&  )
delete

◆ ~ConsoleSink()

ConsoleSink::~ConsoleSink ( )
virtualdefaultnoexcept

Member Function Documentation

◆ get()

spdlog::sink_ptr ConsoleSink::get ( ) const
overrideprotectedvirtual

◆ getLevel()

LogLevel ConsoleSink::getLevel ( ) const
overridevirtual

Gets the minimum log level for messages to get written to the log.

Implements LiteFX::Logging::ISink.

◆ getName()

String ConsoleSink::getName ( ) const
overridevirtual

Gets the name of the sink.

Implements LiteFX::Logging::ISink.

◆ getPattern()

String ConsoleSink::getPattern ( ) const
overridevirtual

Gets the pattern used to format the messages for the sink.

Implements LiteFX::Logging::ISink.