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

#include <async_logger.h>

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

Public Member Functions

template<class It >
 async_logger (const std::string &name, const It &begin, const It &end, size_t queue_size, const async_overflow_policy overflow_policy=async_overflow_policy::block_retry, const std::function< void()> &worker_warmup_cb=nullptr, const std::chrono::milliseconds &flush_interval_ms=std::chrono::milliseconds::zero(), const std::function< void()> &worker_teardown_cb=nullptr)
 
 async_logger (const std::string &logger_name, sinks_init_list sinks, size_t queue_size, const async_overflow_policy overflow_policy=async_overflow_policy::block_retry, const std::function< void()> &worker_warmup_cb=nullptr, const std::chrono::milliseconds &flush_interval_ms=std::chrono::milliseconds::zero(), const std::function< void()> &worker_teardown_cb=nullptr)
 
 async_logger (const std::string &logger_name, sink_ptr single_sink, size_t queue_size, const async_overflow_policy overflow_policy=async_overflow_policy::block_retry, const std::function< void()> &worker_warmup_cb=nullptr, const std::chrono::milliseconds &flush_interval_ms=std::chrono::milliseconds::zero(), const std::function< void()> &worker_teardown_cb=nullptr)
 
virtual log_err_handler error_handler () override
 
void flush () override
 
void format (details::log_msg &msg) override
 
pattern_formatteroperator= (const pattern_formatter &)=delete
 
 pattern_formatter (const std::string &pattern, pattern_time_type pattern_time=pattern_time_type::local)
 
 pattern_formatter (const pattern_formatter &)=delete
 
virtual void set_error_handler (log_err_handler) override
 
- Public Member Functions inherited from spdlog::formatter
virtual ~formatter ()
 
- Public Member Functions inherited from spdlog::logger
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 &)
 
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 &)
 
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
 
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

void _set_formatter (spdlog::formatter_ptr msg_formatter) override
 
void _set_pattern (const std::string &pattern, pattern_time_type pattern_time) override
 
void _sink_it (details::log_msg &msg) override
 
- Protected Member Functions inherited from spdlog::logger
virtual void _default_err_handler (const std::string &msg)
 
bool _should_flush_on (const details::log_msg &)
 

Private Member Functions

void compile_pattern (const std::string &pattern)
 
std::tm get_time (details::log_msg &msg)
 
void handle_flag (char flag)
 

Private Attributes

std::unique_ptr< details::async_log_helper_async_log_helper
 
std::vector< std::unique_ptr< details::flag_formatter > > _formatters
 
const std::string _pattern
 
const pattern_time_type _pattern_time
 

Additional Inherited Members

- Protected Attributes inherited from spdlog::logger
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 34 of file async_logger.h.

Member Function Documentation

void spdlog::SPDLOG_FINAL::_set_formatter ( spdlog::formatter_ptr  msg_formatter)
overrideprotectedvirtual

Reimplemented from spdlog::logger.

void spdlog::SPDLOG_FINAL::_set_pattern ( const std::string &  pattern,
pattern_time_type  pattern_time 
)
overrideprotectedvirtual

Reimplemented from spdlog::logger.

void spdlog::SPDLOG_FINAL::_sink_it ( details::log_msg msg)
overrideprotectedvirtual

Reimplemented from spdlog::logger.

template<class It >
spdlog::SPDLOG_FINAL::async_logger ( const std::string &  name,
const It &  begin,
const It &  end,
size_t  queue_size,
const async_overflow_policy  overflow_policy = async_overflow_policy::block_retry,
const std::function< void()> &  worker_warmup_cb = nullptr,
const std::chrono::milliseconds &  flush_interval_ms = std::chrono::milliseconds::zero(),
const std::function< void()> &  worker_teardown_cb = nullptr 
)
spdlog::SPDLOG_FINAL::async_logger ( const std::string &  logger_name,
sinks_init_list  sinks,
size_t  queue_size,
const async_overflow_policy  overflow_policy = async_overflow_policy::block_retry,
const std::function< void()> &  worker_warmup_cb = nullptr,
const std::chrono::milliseconds &  flush_interval_ms = std::chrono::milliseconds::zero(),
const std::function< void()> &  worker_teardown_cb = nullptr 
)
spdlog::SPDLOG_FINAL::async_logger ( const std::string &  logger_name,
sink_ptr  single_sink,
size_t  queue_size,
const async_overflow_policy  overflow_policy = async_overflow_policy::block_retry,
const std::function< void()> &  worker_warmup_cb = nullptr,
const std::chrono::milliseconds &  flush_interval_ms = std::chrono::milliseconds::zero(),
const std::function< void()> &  worker_teardown_cb = nullptr 
)
void spdlog::SPDLOG_FINAL::compile_pattern ( const std::string &  pattern)
private
virtual log_err_handler spdlog::SPDLOG_FINAL::error_handler ( )
overridevirtual

Reimplemented from spdlog::logger.

void spdlog::SPDLOG_FINAL::flush ( )
overridevirtual

Reimplemented from spdlog::logger.

void spdlog::SPDLOG_FINAL::format ( details::log_msg msg)
overridevirtual

Implements spdlog::formatter.

std::tm spdlog::SPDLOG_FINAL::get_time ( details::log_msg msg)
private
void spdlog::SPDLOG_FINAL::handle_flag ( char  flag)
private
pattern_formatter& spdlog::SPDLOG_FINAL::operator= ( const pattern_formatter )
delete
spdlog::SPDLOG_FINAL::pattern_formatter ( const std::string &  pattern,
pattern_time_type  pattern_time = pattern_time_type::local 
)
explicit
spdlog::SPDLOG_FINAL::pattern_formatter ( const pattern_formatter &  )
delete
virtual void spdlog::SPDLOG_FINAL::set_error_handler ( log_err_handler  )
overridevirtual

Reimplemented from spdlog::logger.

Member Data Documentation

std::unique_ptr<details::async_log_helper> spdlog::SPDLOG_FINAL::_async_log_helper
private

Definition at line 77 of file async_logger.h.

std::vector<std::unique_ptr<details::flag_formatter> > spdlog::SPDLOG_FINAL::_formatters
private

Definition at line 39 of file formatter.h.

const std::string spdlog::SPDLOG_FINAL::_pattern
private

Definition at line 37 of file formatter.h.

const pattern_time_type spdlog::SPDLOG_FINAL::_pattern_time
private

Definition at line 38 of file formatter.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