Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
spdlog::logger Class Reference

#include <logger.h>

Inheritance diagram for spdlog::logger:
Inheritance graph
[legend]

Public Member Functions

template<typename Arg1 , typename... Args>
void critical (const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void critical (const T &)
 
template<typename Arg1 , typename... Args>
void critical_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void critical_if (const bool flag, const T &)
 
template<typename Arg1 , typename... Args>
void debug (const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void debug (const T &)
 
template<typename Arg1 , typename... Args>
void debug_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void debug_if (const bool flag, const T &)
 
template<typename Arg1 , typename... Args>
void error (const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void error (const T &)
 
virtual log_err_handler error_handler ()
 
template<typename Arg1 , typename... Args>
void error_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void error_if (const bool flag, const T &)
 
virtual void flush ()
 
void flush_on (level::level_enum log_level)
 
template<typename Arg1 , typename... Args>
void info (const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void info (const T &)
 
template<typename Arg1 , typename... Args>
void info_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void info_if (const bool flag, const T &)
 
level::level_enum level () const
 
template<typename... Args>
void log (level::level_enum lvl, const char *fmt, const Args &...args)
 
template<typename... Args>
void log (level::level_enum lvl, const char *msg)
 
template<typename T >
void log (level::level_enum lvl, const T &)
 
template<typename... Args>
void log_if (const bool flag, level::level_enum lvl, const char *fmt, const Args &...args)
 
template<typename... Args>
void log_if (const bool flag, level::level_enum lvl, const char *msg)
 
template<typename T >
void log_if (const bool flag, level::level_enum lvl, const T &)
 
 logger (const std::string &logger_name, sink_ptr single_sink)
 
 logger (const std::string &name, sinks_init_list)
 
template<class It >
 logger (const std::string &name, const It &begin, const It &end)
 
 logger (const logger &)=delete
 
const std::string & name () const
 
loggeroperator= (const logger &)=delete
 
virtual void set_error_handler (log_err_handler)
 
void set_formatter (formatter_ptr)
 
void set_level (level::level_enum)
 
void set_pattern (const std::string &, pattern_time_type=pattern_time_type::local)
 
bool should_log (level::level_enum) const
 
const std::vector< sink_ptr > & sinks () const
 
template<typename Arg1 , typename... Args>
void trace (const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void trace (const T &)
 
template<typename Arg1 , typename... Args>
void trace_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void trace_if (const bool flag, const T &)
 
template<typename Arg1 , typename... Args>
void warn (const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void warn (const T &)
 
template<typename Arg1 , typename... Args>
void warn_if (const bool flag, const char *fmt, const Arg1 &, const Args &...args)
 
template<typename T >
void warn_if (const bool flag, const T &)
 
virtual ~logger ()
 

Protected Member Functions

virtual void _default_err_handler (const std::string &msg)
 
virtual void _set_formatter (formatter_ptr)
 
virtual void _set_pattern (const std::string &, pattern_time_type)
 
bool _should_flush_on (const details::log_msg &)
 
virtual void _sink_it (details::log_msg &)
 

Protected Attributes

log_err_handler _err_handler
 
spdlog::level_t _flush_level
 
formatter_ptr _formatter
 
std::atomic< time_t > _last_err_time
 
spdlog::level_t _level
 
std::atomic< size_t > _msg_counter
 
const std::string _name
 
std::vector< sink_ptr_sinks
 

Detailed Description

Definition at line 25 of file spdlog/logger.h.

Constructor & Destructor Documentation

spdlog::logger::logger ( const std::string &  logger_name,
spdlog::sink_ptr  single_sink 
)
inline

Definition at line 40 of file logger_impl.h.

spdlog::logger::logger ( const std::string &  name,
sinks_init_list  sinks_list 
)
inline

Definition at line 34 of file logger_impl.h.

template<class It >
spdlog::logger::logger ( const std::string &  name,
const It &  begin,
const It &  end 
)
inline

Definition at line 18 of file logger_impl.h.

spdlog::logger::~logger ( )
inlinevirtualdefault
spdlog::logger::logger ( const logger )
delete

Member Function Documentation

void spdlog::logger::_default_err_handler ( const std::string &  msg)
inlineprotectedvirtual

Definition at line 540 of file logger_impl.h.

void spdlog::logger::_set_formatter ( formatter_ptr  msg_formatter)
inlineprotectedvirtual

Reimplemented in spdlog::SPDLOG_FINAL.

Definition at line 529 of file logger_impl.h.

void spdlog::logger::_set_pattern ( const std::string &  pattern,
pattern_time_type  pattern_time 
)
inlineprotectedvirtual

Reimplemented in spdlog::SPDLOG_FINAL.

Definition at line 525 of file logger_impl.h.

bool spdlog::logger::_should_flush_on ( const details::log_msg msg)
inlineprotected

Definition at line 554 of file logger_impl.h.

void spdlog::logger::_sink_it ( details::log_msg msg)
inlineprotectedvirtual

Reimplemented in spdlog::SPDLOG_FINAL.

Definition at line 507 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::critical ( const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 156 of file logger_impl.h.

template<typename T >
void spdlog::logger::critical ( const T &  msg)
inline

Definition at line 267 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::critical_if ( const bool  flag,
const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 225 of file logger_impl.h.

template<typename T >
void spdlog::logger::critical_if ( const bool  flag,
const T &  msg 
)
inline

Definition at line 318 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::debug ( const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 132 of file logger_impl.h.

template<typename T >
void spdlog::logger::debug ( const T &  msg)
inline

Definition at line 241 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::debug_if ( const bool  flag,
const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 189 of file logger_impl.h.

template<typename T >
void spdlog::logger::debug_if ( const bool  flag,
const T &  msg 
)
inline

Definition at line 282 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::error ( const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 150 of file logger_impl.h.

template<typename T >
void spdlog::logger::error ( const T &  msg)
inline

Definition at line 261 of file logger_impl.h.

spdlog::log_err_handler spdlog::logger::error_handler ( )
inlinevirtual

Reimplemented in spdlog::SPDLOG_FINAL.

Definition at line 483 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::error_if ( const bool  flag,
const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 216 of file logger_impl.h.

template<typename T >
void spdlog::logger::error_if ( const bool  flag,
const T &  msg 
)
inline

Definition at line 309 of file logger_impl.h.

void spdlog::logger::flush ( )
inlinevirtual

Reimplemented in spdlog::SPDLOG_FINAL.

Definition at line 534 of file logger_impl.h.

void spdlog::logger::flush_on ( level::level_enum  log_level)
inline

Definition at line 489 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::info ( const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 138 of file logger_impl.h.

template<typename T >
void spdlog::logger::info ( const T &  msg)
inline

Definition at line 248 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::info_if ( const bool  flag,
const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 198 of file logger_impl.h.

template<typename T >
void spdlog::logger::info_if ( const bool  flag,
const T &  msg 
)
inline

Definition at line 291 of file logger_impl.h.

spdlog::level::level_enum spdlog::logger::level ( ) const
inline

Definition at line 494 of file logger_impl.h.

template<typename... Args>
void spdlog::logger::log ( level::level_enum  lvl,
const char *  fmt,
const Args &...  args 
)
inline

Definition at line 63 of file logger_impl.h.

template<typename... Args>
void spdlog::logger::log ( level::level_enum  lvl,
const char *  msg 
)
inline

Definition at line 84 of file logger_impl.h.

template<typename T>
void spdlog::logger::log ( level::level_enum  lvl,
const T &  msg 
)
inline

Definition at line 105 of file logger_impl.h.

template<typename... Args>
void spdlog::logger::log_if ( const bool  flag,
level::level_enum  lvl,
const char *  fmt,
const Args &...  args 
)
template<typename... Args>
void spdlog::logger::log_if ( const bool  flag,
level::level_enum  lvl,
const char *  msg 
)
inline

Definition at line 162 of file logger_impl.h.

template<typename T>
void spdlog::logger::log_if ( const bool  flag,
level::level_enum  lvl,
const T &  msg 
)
inline

Definition at line 171 of file logger_impl.h.

const std::string & spdlog::logger::name ( ) const
inline

Definition at line 468 of file logger_impl.h.

logger& spdlog::logger::operator= ( const logger )
delete
void spdlog::logger::set_error_handler ( spdlog::log_err_handler  err_handler)
inlinevirtual

Reimplemented in spdlog::SPDLOG_FINAL.

Definition at line 478 of file logger_impl.h.

void spdlog::logger::set_formatter ( spdlog::formatter_ptr  msg_formatter)
inline

Definition at line 51 of file logger_impl.h.

void spdlog::logger::set_level ( level::level_enum  log_level)
inline

Definition at line 473 of file logger_impl.h.

void spdlog::logger::set_pattern ( const std::string &  pattern,
pattern_time_type  pattern_time = pattern_time_type::local 
)
inline

Definition at line 56 of file logger_impl.h.

bool spdlog::logger::should_log ( level::level_enum  msg_level) const
inline

Definition at line 499 of file logger_impl.h.

const std::vector< spdlog::sink_ptr > & spdlog::logger::sinks ( ) const
inline

Definition at line 560 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::trace ( const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 126 of file logger_impl.h.

template<typename T >
void spdlog::logger::trace ( const T &  msg)
inline

Definition at line 235 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::trace_if ( const bool  flag,
const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 180 of file logger_impl.h.

template<typename T >
void spdlog::logger::trace_if ( const bool  flag,
const T &  msg 
)
inline

Definition at line 273 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::warn ( const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 144 of file logger_impl.h.

template<typename T >
void spdlog::logger::warn ( const T &  msg)
inline

Definition at line 255 of file logger_impl.h.

template<typename Arg1 , typename... Args>
void spdlog::logger::warn_if ( const bool  flag,
const char *  fmt,
const Arg1 &  arg1,
const Args &...  args 
)
inline

Definition at line 207 of file logger_impl.h.

template<typename T >
void spdlog::logger::warn_if ( const bool  flag,
const T &  msg 
)
inline

Definition at line 300 of file logger_impl.h.

Member Data Documentation

log_err_handler spdlog::logger::_err_handler
protected

Definition at line 126 of file spdlog/logger.h.

spdlog::level_t spdlog::logger::_flush_level
protected

Definition at line 125 of file spdlog/logger.h.

formatter_ptr spdlog::logger::_formatter
protected

Definition at line 123 of file spdlog/logger.h.

std::atomic<time_t> spdlog::logger::_last_err_time
protected

Definition at line 127 of file spdlog/logger.h.

spdlog::level_t spdlog::logger::_level
protected

Definition at line 124 of file spdlog/logger.h.

std::atomic<size_t> spdlog::logger::_msg_counter
protected

Definition at line 128 of file spdlog/logger.h.

const std::string spdlog::logger::_name
protected

Definition at line 121 of file spdlog/logger.h.

std::vector<sink_ptr> spdlog::logger::_sinks
protected

Definition at line 122 of file spdlog/logger.h.


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


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:10