Agora  1.2.0
Agora project
spdlog::sinks::syslog_sink< Mutex > Class Template Reference

#include <syslog_sink.h>

Inheritance diagram for spdlog::sinks::syslog_sink< Mutex >:
Collaboration diagram for spdlog::sinks::syslog_sink< Mutex >:

Public Member Functions

 syslog_sink (std::string ident, int syslog_option, int syslog_facility, bool enable_formatting)
 
 ~syslog_sink () override
 
 syslog_sink (const syslog_sink &)=delete
 
syslog_sinkoperator= (const syslog_sink &)=delete
 
- Public Member Functions inherited from spdlog::sinks::base_sink< Mutex >
 base_sink ()
 
 base_sink (std::unique_ptr< spdlog::formatter > formatter)
 
 ~base_sink () override=default
 
 base_sink (const base_sink &)=delete
 
 base_sink (base_sink &&)=delete
 
base_sinkoperator= (const base_sink &)=delete
 
base_sinkoperator= (base_sink &&)=delete
 
void log (const details::log_msg &msg) final
 
void flush () final
 
void set_pattern (const std::string &pattern) final
 
void set_formatter (std::unique_ptr< spdlog::formatter > sink_formatter) final
 
- Public Member Functions inherited from spdlog::sinks::sink
virtual ~sink ()=default
 
void set_level (level::level_enum log_level)
 
level::level_enum level () const
 
bool should_log (level::level_enum msg_level) const
 

Protected Member Functions

void sink_it_ (const details::log_msg &msg) override
 
void flush_ () override
 
- Protected Member Functions inherited from spdlog::sinks::base_sink< Mutex >
virtual void set_pattern_ (const std::string &pattern)
 
virtual void set_formatter_ (std::unique_ptr< spdlog::formatter > sink_formatter)
 

Protected Attributes

bool enable_formatting_ = false
 
- Protected Attributes inherited from spdlog::sinks::base_sink< Mutex >
std::unique_ptr< spdlog::formatterformatter_
 
Mutex mutex_
 
- Protected Attributes inherited from spdlog::sinks::sink
level_t level_ {level::trace}
 

Private Types

using levels_array = std::array< int, 7 >
 

Private Member Functions

int syslog_prio_from_level (const details::log_msg &msg) const
 

Private Attributes

levels_array syslog_levels_
 
const std::string ident_
 

Detailed Description

template<typename Mutex>
class spdlog::sinks::syslog_sink< Mutex >

Sink that write to syslog using the syscall() library call.

Member Typedef Documentation

◆ levels_array

template<typename Mutex >
using spdlog::sinks::syslog_sink< Mutex >::levels_array = std::array<int, 7>
private

Constructor & Destructor Documentation

◆ syslog_sink() [1/2]

template<typename Mutex >
spdlog::sinks::syslog_sink< Mutex >::syslog_sink ( std::string  ident,
int  syslog_option,
int  syslog_facility,
bool  enable_formatting 
)
inline

◆ ~syslog_sink()

template<typename Mutex >
spdlog::sinks::syslog_sink< Mutex >::~syslog_sink ( )
inlineoverride

◆ syslog_sink() [2/2]

template<typename Mutex >
spdlog::sinks::syslog_sink< Mutex >::syslog_sink ( const syslog_sink< Mutex > &  )
delete

Member Function Documentation

◆ flush_()

template<typename Mutex >
void spdlog::sinks::syslog_sink< Mutex >::flush_ ( )
inlineoverrideprotectedvirtual

◆ operator=()

template<typename Mutex >
syslog_sink& spdlog::sinks::syslog_sink< Mutex >::operator= ( const syslog_sink< Mutex > &  )
delete

◆ sink_it_()

template<typename Mutex >
void spdlog::sinks::syslog_sink< Mutex >::sink_it_ ( const details::log_msg msg)
inlineoverrideprotectedvirtual

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

Here is the call graph for this function:

◆ syslog_prio_from_level()

template<typename Mutex >
int spdlog::sinks::syslog_sink< Mutex >::syslog_prio_from_level ( const details::log_msg msg) const
inlineprivate
Here is the caller graph for this function:

Member Data Documentation

◆ enable_formatting_

template<typename Mutex >
bool spdlog::sinks::syslog_sink< Mutex >::enable_formatting_ = false
protected

◆ ident_

template<typename Mutex >
const std::string spdlog::sinks::syslog_sink< Mutex >::ident_
private

◆ syslog_levels_

template<typename Mutex >
levels_array spdlog::sinks::syslog_sink< Mutex >::syslog_levels_
private

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