Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
spdlog::sinks::ostream_sink< Mutex > Class Template Reference

#include <ostream_sink.h>

+ Inheritance diagram for spdlog::sinks::ostream_sink< Mutex >:
+ Collaboration diagram for spdlog::sinks::ostream_sink< Mutex >:

Public Member Functions

 ostream_sink (std::ostream &os, bool force_flush=false)
 
 ostream_sink (const ostream_sink &)=delete
 
ostream_sinkoperator= (const ostream_sink &)=delete
 
virtual ~ostream_sink ()=default
 
- Public Member Functions inherited from spdlog::sinks::base_sink< Mutex >
 base_sink ()
 
virtual ~base_sink ()=default
 
 base_sink (const base_sink &)=delete
 
base_sinkoperator= (const base_sink &)=delete
 
void log (const details::log_msg &msg) SPDLOG_FINAL override
 
void flush () SPDLOG_FINAL override
 
- Public Member Functions inherited from spdlog::sinks::sink
 sink ()
 
virtual ~sink ()
 
bool should_log (level::level_enum msg_level) const
 
void set_level (level::level_enum log_level)
 
level::level_enum level () const
 

Protected Member Functions

void _sink_it (const details::log_msg &msg) override
 
void _flush () override
 

Protected Attributes

std::ostream & _ostream
 
bool _force_flush
 
- Protected Attributes inherited from spdlog::sinks::base_sink< Mutex >
Mutex _mutex
 

Detailed Description

template<class Mutex>
class spdlog::sinks::ostream_sink< Mutex >

Definition at line 19 of file ostream_sink.h.

Constructor & Destructor Documentation

◆ ostream_sink() [1/2]

template<class Mutex >
spdlog::sinks::ostream_sink< Mutex >::ostream_sink ( std::ostream & os,
bool force_flush = false )
inlineexplicit

Definition at line 22 of file ostream_sink.h.

◆ ostream_sink() [2/2]

template<class Mutex >
spdlog::sinks::ostream_sink< Mutex >::ostream_sink ( const ostream_sink< Mutex > & )
delete

◆ ~ostream_sink()

template<class Mutex >
virtual spdlog::sinks::ostream_sink< Mutex >::~ostream_sink ( )
virtualdefault

Member Function Documentation

◆ _flush()

template<class Mutex >
void spdlog::sinks::ostream_sink< Mutex >::_flush ( )
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 35 of file ostream_sink.h.

◆ _sink_it()

template<class Mutex >
void spdlog::sinks::ostream_sink< Mutex >::_sink_it ( const details::log_msg & msg)
inlineoverrideprotectedvirtual

Implements spdlog::sinks::base_sink< Mutex >.

Definition at line 28 of file ostream_sink.h.

◆ operator=()

template<class Mutex >
ostream_sink & spdlog::sinks::ostream_sink< Mutex >::operator= ( const ostream_sink< Mutex > & )
delete

Member Data Documentation

◆ _force_flush

template<class Mutex >
bool spdlog::sinks::ostream_sink< Mutex >::_force_flush
protected

Definition at line 41 of file ostream_sink.h.

◆ _ostream

template<class Mutex >
std::ostream& spdlog::sinks::ostream_sink< Mutex >::_ostream
protected

Definition at line 40 of file ostream_sink.h.


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