LiteFX 0.4.1.2025
Computer Graphics Engine
Loading...
Searching...
No Matches
LiteFX::Logging::ISink Class Referenceabstract

Interface for a class that receives log messages. More...

#include <logging.hpp>

Inherited by LiteFX::Logging::ConsoleSink, LiteFX::Logging::RollingFileSink, and LiteFX::Logging::TerminationSink.

Public Member Functions

virtual ~ISink () noexcept=default
 
virtual LogLevel getLevel () const =0
 Gets the minimum log level for messages to get written to the log.
 
virtual String getName () const =0
 Gets the name of the sink.
 
virtual String getPattern () const =0
 Gets the pattern used to format the messages for the sink.
 

Protected Member Functions

 ISink () noexcept=default
 
 ISink (const ISink &)=default
 
 ISink (ISink &&) noexcept=default
 
ISinkoperator= (const ISink &)=default
 
ISinkoperator= (ISink &&) noexcept=default
 
virtual spdlog::sink_ptr get () const =0
 

Friends

class Logger
 

Detailed Description

Interface for a class that receives log messages.

Constructor & Destructor Documentation

◆ ISink() [1/3]

LiteFX::Logging::ISink::ISink ( )
protecteddefaultnoexcept

◆ ISink() [2/3]

LiteFX::Logging::ISink::ISink ( const ISink & )
protecteddefault

◆ ISink() [3/3]

LiteFX::Logging::ISink::ISink ( ISink && )
protecteddefaultnoexcept

◆ ~ISink()

virtual LiteFX::Logging::ISink::~ISink ( )
virtualdefaultnoexcept

Member Function Documentation

◆ get()

virtual spdlog::sink_ptr LiteFX::Logging::ISink::get ( ) const
protectedpure virtual

◆ getLevel()

virtual LogLevel LiteFX::Logging::ISink::getLevel ( ) const
pure virtual

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

Implemented in LiteFX::Logging::ConsoleSink, LiteFX::Logging::RollingFileSink, and LiteFX::Logging::TerminationSink.

◆ getName()

virtual String LiteFX::Logging::ISink::getName ( ) const
pure virtual

◆ getPattern()

virtual String LiteFX::Logging::ISink::getPattern ( ) const
pure virtual

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

Implemented in LiteFX::Logging::ConsoleSink, LiteFX::Logging::RollingFileSink, and LiteFX::Logging::TerminationSink.

◆ operator=() [1/2]

ISink & LiteFX::Logging::ISink::operator= ( const ISink & )
protecteddefault

◆ operator=() [2/2]

ISink & LiteFX::Logging::ISink::operator= ( ISink && )
protecteddefaultnoexcept

Friends And Related Symbol Documentation

◆ Logger

friend class Logger
friend