OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
SpdlogSink< BaseSink > Class Template Reference
Inheritance diagram for SpdlogSink< BaseSink >:
LogSink

Public Member Functions

template<class... Args>
 SpdlogSink (Args &&... args)
 
virtual void write (const LogCategory &category, LogLevel level, std::string_view message) override
 
BaseSink & base ()
 
- Public Member Functions inherited from LogSink
virtual ~LogSink ()=default
 
virtual void write (const LogCategory &category, LogLevel level, std::string_view message)=0
 

Private Attributes

BaseSink _base
 

Additional Inherited Members

- Static Public Member Functions inherited from LogSink
static std::unique_ptr< LogSinkcreateDefaultSink ()
 

Constructor & Destructor Documentation

◆ SpdlogSink()

template<class BaseSink >
template<class... Args>
SpdlogSink< BaseSink >::SpdlogSink ( Args &&...  args)
inlineexplicit

Member Function Documentation

◆ base()

template<class BaseSink >
BaseSink & SpdlogSink< BaseSink >::base ( )
inline

◆ write()

template<class BaseSink >
virtual void SpdlogSink< BaseSink >::write ( const LogCategory category,
LogLevel  level,
std::string_view  message 
)
inlineoverridevirtual

Writes out the log message.

Calls into write from the Logger instance are guaranteed to be serialized with a mutex, so you don't need to do any locking in your implementation.

Parameters
categoryLog category.
levelLog level.
messageLog message.

Implements LogSink.

Member Data Documentation

◆ _base

template<class BaseSink >
BaseSink SpdlogSink< BaseSink >::_base
private

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