spdlog
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Enumerations | Functions
spdlog Namespace Reference

Namespaces

namespace  cfg
 
namespace  details
 
namespace  level
 
namespace  sinks
 

Classes

struct  async_factory_impl
 
class  async_logger
 
class  custom_flag_formatter
 
class  formatter
 
struct  is_convertible_to_any_format_string
 
struct  is_convertible_to_basic_format_string
 
class  logger
 
class  pattern_formatter
 
struct  source_loc
 
class  spdlog_ex
 
class  stopwatch
 
struct  synchronous_factory
 

Typedefs

using async_factory = async_factory_impl< async_overflow_policy::block >
 
using async_factory_nonblock = async_factory_impl< async_overflow_policy::overrun_oldest >
 
using filename_t = std::string
 
using log_clock = std::chrono::system_clock
 
using sink_ptr = std::shared_ptr< sinks::sink >
 
using sinks_init_list = std::initializer_list< sink_ptr >
 
using err_handler = std::function< void(const std::string &err_msg)>
 
using string_view_t = fmt::basic_string_view< char >
 
using wstring_view_t = fmt::basic_string_view< wchar_t >
 
using memory_buf_t = fmt::basic_memory_buffer< char, 250 >
 
using wmemory_buf_t = fmt::basic_memory_buffer< wchar_t, 250 >
 
template<class T >
using remove_cvref_t = typename std::remove_cv< typename std::remove_reference< T >::type >::type
 
using level_t = std::atomic< int >
 
using default_factory = synchronous_factory
 

Enumerations

enum class  async_overflow_policy {
  block ,
  overrun_oldest
}
 
enum class  color_mode {
  always ,
  automatic ,
  never
}
 
enum class  pattern_time_type {
  local ,
  utc
}
 

Functions

template<typename Sink , typename... SinkArgs>
std::shared_ptr< spdlog::loggercreate_async (std::string logger_name, SinkArgs &&...sink_args)
 
template<typename Sink , typename... SinkArgs>
std::shared_ptr< spdlog::loggercreate_async_nb (std::string logger_name, SinkArgs &&...sink_args)
 
void init_thread_pool (size_t q_size, size_t thread_count, std::function< void()> on_thread_start)
 
void init_thread_pool (size_t q_size, size_t thread_count)
 
std::shared_ptr< spdlog::details::thread_poolthread_pool ()
 
SPDLOG_INLINE void throw_spdlog_ex (const std::string &msg, int last_errno)
 
SPDLOG_INLINE void throw_spdlog_ex (std::string msg)
 
template<typename Container >
details::dump_info< typename Container::const_iterator > to_hex (const Container &container, size_t size_per_line=32)
 
template<typename It >
details::dump_info< It > to_hex (const It range_begin, const It range_end, size_t size_per_line=32)
 
SPDLOG_INLINE void swap (logger &a, logger &b)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerbasic_logger_mt (const std::string &logger_name, const filename_t &filename, bool truncate=false)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerbasic_logger_st (const std::string &logger_name, const filename_t &filename, bool truncate=false)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerdaily_logger_mt (const std::string &logger_name, const filename_t &filename, int hour=0, int minute=0, bool truncate=false, uint16_t max_files=0)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerdaily_logger_format_mt (const std::string &logger_name, const filename_t &filename, int hour=0, int minute=0, bool truncate=false, uint16_t max_files=0)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerdaily_logger_st (const std::string &logger_name, const filename_t &filename, int hour=0, int minute=0, bool truncate=false, uint16_t max_files=0)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerdaily_logger_format_st (const std::string &logger_name, const filename_t &filename, int hour=0, int minute=0, bool truncate=false, uint16_t max_files=0)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerhourly_logger_mt (const std::string &logger_name, const filename_t &filename, bool truncate=false, uint16_t max_files=0)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerhourly_logger_st (const std::string &logger_name, const filename_t &filename, bool truncate=false, uint16_t max_files=0)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggermongo_logger_mt (const std::string &logger_name, const std::string &db_name, const std::string &collection_name, const std::string &uri="mongodb://localhost:27017")
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggermongo_logger_st (const std::string &logger_name, const std::string &db_name, const std::string &collection_name, const std::string &uri="mongodb://localhost:27017")
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggernull_logger_mt (const std::string &logger_name)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggernull_logger_st (const std::string &logger_name)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerqt_logger_mt (const std::string &logger_name, QTextEdit *qt_object, const std::string &meta_method="append")
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerqt_logger_st (const std::string &logger_name, QTextEdit *qt_object, const std::string &meta_method="append")
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerqt_logger_mt (const std::string &logger_name, QPlainTextEdit *qt_object, const std::string &meta_method="appendPlainText")
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerqt_logger_st (const std::string &logger_name, QPlainTextEdit *qt_object, const std::string &meta_method="appendPlainText")
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerqt_logger_mt (const std::string &logger_name, QObject *qt_object, const std::string &meta_method)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerqt_logger_st (const std::string &logger_name, QObject *qt_object, const std::string &meta_method)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerrotating_logger_mt (const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files, bool rotate_on_open=false)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerrotating_logger_st (const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files, bool rotate_on_open=false)
 
template<typename Factory >
SPDLOG_INLINE std::shared_ptr< loggerstdout_color_mt (const std::string &logger_name, color_mode mode)
 
template<typename Factory >
SPDLOG_INLINE std::shared_ptr< loggerstdout_color_st (const std::string &logger_name, color_mode mode)
 
template<typename Factory >
SPDLOG_INLINE std::shared_ptr< loggerstderr_color_mt (const std::string &logger_name, color_mode mode)
 
template<typename Factory >
SPDLOG_INLINE std::shared_ptr< loggerstderr_color_st (const std::string &logger_name, color_mode mode)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerstdout_color_mt (const std::string &logger_name, color_mode mode=color_mode::automatic)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerstdout_color_st (const std::string &logger_name, color_mode mode=color_mode::automatic)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerstderr_color_mt (const std::string &logger_name, color_mode mode=color_mode::automatic)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerstderr_color_st (const std::string &logger_name, color_mode mode=color_mode::automatic)
 
template<typename Factory >
SPDLOG_INLINE std::shared_ptr< loggerstdout_logger_mt (const std::string &logger_name)
 
template<typename Factory >
SPDLOG_INLINE std::shared_ptr< loggerstdout_logger_st (const std::string &logger_name)
 
template<typename Factory >
SPDLOG_INLINE std::shared_ptr< loggerstderr_logger_mt (const std::string &logger_name)
 
template<typename Factory >
SPDLOG_INLINE std::shared_ptr< loggerstderr_logger_st (const std::string &logger_name)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerstdout_logger_mt (const std::string &logger_name)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerstdout_logger_st (const std::string &logger_name)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerstderr_logger_mt (const std::string &logger_name)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerstderr_logger_st (const std::string &logger_name)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggersyslog_logger_mt (const std::string &logger_name, const std::string &syslog_ident="", int syslog_option=0, int syslog_facility=LOG_USER, bool enable_formatting=false)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggersyslog_logger_st (const std::string &logger_name, const std::string &syslog_ident="", int syslog_option=0, int syslog_facility=LOG_USER, bool enable_formatting=false)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggersystemd_logger_mt (const std::string &logger_name)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggersystemd_logger_st (const std::string &logger_name)
 
SPDLOG_INLINE void initialize_logger (std::shared_ptr< logger > logger)
 
SPDLOG_INLINE std::shared_ptr< loggerget (const std::string &name)
 
SPDLOG_INLINE void set_formatter (std::unique_ptr< spdlog::formatter > formatter)
 
SPDLOG_INLINE void set_pattern (std::string pattern, pattern_time_type time_type)
 
SPDLOG_INLINE void enable_backtrace (size_t n_messages)
 
SPDLOG_INLINE void disable_backtrace ()
 
SPDLOG_INLINE void dump_backtrace ()
 
SPDLOG_INLINE level::level_enum get_level ()
 
SPDLOG_INLINE bool should_log (level::level_enum log_level)
 
SPDLOG_INLINE void set_level (level::level_enum log_level)
 
SPDLOG_INLINE void flush_on (level::level_enum log_level)
 
SPDLOG_INLINE void flush_every (std::chrono::seconds interval)
 
SPDLOG_INLINE void set_error_handler (void(*handler)(const std::string &msg))
 
SPDLOG_INLINE void register_logger (std::shared_ptr< logger > logger)
 
SPDLOG_INLINE void apply_all (const std::function< void(std::shared_ptr< logger >)> &fun)
 
SPDLOG_INLINE void drop (const std::string &name)
 
SPDLOG_INLINE void drop_all ()
 
SPDLOG_INLINE void shutdown ()
 
SPDLOG_INLINE void set_automatic_registration (bool automatic_registration)
 
SPDLOG_INLINE std::shared_ptr< spdlog::loggerdefault_logger ()
 
SPDLOG_INLINE spdlog::loggerdefault_logger_raw ()
 
SPDLOG_INLINE void set_default_logger (std::shared_ptr< spdlog::logger > default_logger)
 
template<typename Sink , typename... SinkArgs>
std::shared_ptr< spdlog::loggercreate (std::string logger_name, SinkArgs &&...sink_args)
 
template<typename... Args>
void log (source_loc source, level::level_enum lvl, fmt::format_string< Args... > fmt, Args &&...args)
 
template<typename... Args>
void log (level::level_enum lvl, fmt::format_string< Args... > fmt, Args &&...args)
 
template<typename... Args>
void trace (fmt::format_string< Args... > fmt, Args &&...args)
 
template<typename... Args>
void debug (fmt::format_string< Args... > fmt, Args &&...args)
 
template<typename... Args>
void info (fmt::format_string< Args... > fmt, Args &&...args)
 
template<typename... Args>
void warn (fmt::format_string< Args... > fmt, Args &&...args)
 
template<typename... Args>
void error (fmt::format_string< Args... > fmt, Args &&...args)
 
template<typename... Args>
void critical (fmt::format_string< Args... > fmt, Args &&...args)
 
template<typename T >
void log (source_loc source, level::level_enum lvl, const T &msg)
 
template<typename T >
void log (level::level_enum lvl, const T &msg)
 
template<typename T >
void trace (const T &msg)
 
template<typename T >
void debug (const T &msg)
 
template<typename T >
void info (const T &msg)
 
template<typename T >
void warn (const T &msg)
 
template<typename T >
void error (const T &msg)
 
template<typename T >
void critical (const T &msg)
 

Typedef Documentation

◆ async_factory

Definition at line 60 of file async.h.

◆ async_factory_nonblock

Definition at line 61 of file async.h.

◆ default_factory

Definition at line 25 of file spdlog.h.

◆ err_handler

using spdlog::err_handler = typedef std::function<void(const std::string &err_msg)>

Definition at line 113 of file common.h.

◆ filename_t

Definition at line 106 of file common.h.

◆ level_t

using spdlog::level_t = typedef std::atomic<int>

Definition at line 144 of file common.h.

◆ log_clock

Definition at line 110 of file common.h.

◆ memory_buf_t

using spdlog::memory_buf_t = typedef fmt::basic_memory_buffer<char, 250>

Definition at line 116 of file common.h.

◆ remove_cvref_t

template<class T >
using spdlog::remove_cvref_t = typedef typename std::remove_cv<typename std::remove_reference<T>::type>::type

Definition at line 120 of file common.h.

◆ sink_ptr

Definition at line 111 of file common.h.

◆ sinks_init_list

Definition at line 112 of file common.h.

◆ string_view_t

using spdlog::string_view_t = typedef fmt::basic_string_view<char>

Definition at line 114 of file common.h.

◆ wmemory_buf_t

using spdlog::wmemory_buf_t = typedef fmt::basic_memory_buffer<wchar_t, 250>

Definition at line 117 of file common.h.

◆ wstring_view_t

using spdlog::wstring_view_t = typedef fmt::basic_string_view<wchar_t>

Definition at line 115 of file common.h.

Enumeration Type Documentation

◆ async_overflow_policy

enum class spdlog::async_overflow_policy
strong
Enumerator
block 
overrun_oldest 

Definition at line 22 of file async_logger.h.

◆ color_mode

enum class spdlog::color_mode
strong
Enumerator
always 
automatic 
never 

Definition at line 206 of file common.h.

◆ pattern_time_type

enum class spdlog::pattern_time_type
strong
Enumerator
local 
utc 

Definition at line 217 of file common.h.

Function Documentation

◆ apply_all()

SPDLOG_API void spdlog::apply_all ( const std::function< void(std::shared_ptr< logger >)> &  fun)

Definition at line 85 of file spdlog-inl.h.

◆ basic_logger_mt()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::basic_logger_mt ( const std::string logger_name,
const filename_t filename,
bool  truncate = false 
)
inline

Definition at line 43 of file basic_file_sink.h.

◆ basic_logger_st()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::basic_logger_st ( const std::string logger_name,
const filename_t filename,
bool  truncate = false 
)
inline

Definition at line 49 of file basic_file_sink.h.

◆ create()

template<typename Sink , typename... SinkArgs>
std::shared_ptr< spdlog::logger > spdlog::create ( std::string  logger_name,
SinkArgs &&...  sink_args 
)
inline

Definition at line 34 of file spdlog.h.

◆ create_async()

template<typename Sink , typename... SinkArgs>
std::shared_ptr< spdlog::logger > spdlog::create_async ( std::string  logger_name,
SinkArgs &&...  sink_args 
)
inline

Definition at line 64 of file async.h.

◆ create_async_nb()

template<typename Sink , typename... SinkArgs>
std::shared_ptr< spdlog::logger > spdlog::create_async_nb ( std::string  logger_name,
SinkArgs &&...  sink_args 
)
inline

Definition at line 70 of file async.h.

◆ critical() [1/2]

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

Definition at line 271 of file spdlog.h.

◆ critical() [2/2]

template<typename... Args>
void spdlog::critical ( fmt::format_string< Args... >  fmt,
Args &&...  args 
)
inline

Definition at line 173 of file spdlog.h.

◆ daily_logger_format_mt()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::daily_logger_format_mt ( const std::string logger_name,
const filename_t filename,
int  hour = 0,
int  minute = 0,
bool  truncate = false,
uint16_t  max_files = 0 
)
inline

Definition at line 223 of file daily_file_sink.h.

◆ daily_logger_format_st()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::daily_logger_format_st ( const std::string logger_name,
const filename_t filename,
int  hour = 0,
int  minute = 0,
bool  truncate = false,
uint16_t  max_files = 0 
)
inline

Definition at line 237 of file daily_file_sink.h.

◆ daily_logger_mt()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::daily_logger_mt ( const std::string logger_name,
const filename_t filename,
int  hour = 0,
int  minute = 0,
bool  truncate = false,
uint16_t  max_files = 0 
)
inline

Definition at line 216 of file daily_file_sink.h.

◆ daily_logger_st()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::daily_logger_st ( const std::string logger_name,
const filename_t filename,
int  hour = 0,
int  minute = 0,
bool  truncate = false,
uint16_t  max_files = 0 
)
inline

Definition at line 230 of file daily_file_sink.h.

◆ debug() [1/2]

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

Definition at line 247 of file spdlog.h.

◆ debug() [2/2]

template<typename... Args>
void spdlog::debug ( fmt::format_string< Args... >  fmt,
Args &&...  args 
)
inline

Definition at line 149 of file spdlog.h.

◆ default_logger()

SPDLOG_API std::shared_ptr< spdlog::logger > spdlog::default_logger ( )

Definition at line 110 of file spdlog-inl.h.

◆ default_logger_raw()

SPDLOG_API spdlog::logger * spdlog::default_logger_raw ( )

Definition at line 115 of file spdlog-inl.h.

◆ disable_backtrace()

SPDLOG_API void spdlog::disable_backtrace ( )

Definition at line 40 of file spdlog-inl.h.

◆ drop()

SPDLOG_API void spdlog::drop ( const std::string name)

Definition at line 90 of file spdlog-inl.h.

◆ drop_all()

SPDLOG_API void spdlog::drop_all ( )

Definition at line 95 of file spdlog-inl.h.

◆ dump_backtrace()

SPDLOG_API void spdlog::dump_backtrace ( )

Definition at line 45 of file spdlog-inl.h.

◆ enable_backtrace()

SPDLOG_API void spdlog::enable_backtrace ( size_t  n_messages)

Definition at line 35 of file spdlog-inl.h.

◆ error() [1/2]

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

Definition at line 265 of file spdlog.h.

◆ error() [2/2]

template<typename... Args>
void spdlog::error ( fmt::format_string< Args... >  fmt,
Args &&...  args 
)
inline

Definition at line 167 of file spdlog.h.

◆ flush_every()

SPDLOG_API void spdlog::flush_every ( std::chrono::seconds  interval)

Definition at line 70 of file spdlog-inl.h.

◆ flush_on()

SPDLOG_API void spdlog::flush_on ( level::level_enum  log_level)

Definition at line 65 of file spdlog-inl.h.

◆ get()

SPDLOG_API std::shared_ptr< logger > spdlog::get ( const std::string name)

Definition at line 20 of file spdlog-inl.h.

◆ get_level()

SPDLOG_API level::level_enum spdlog::get_level ( )

Definition at line 50 of file spdlog-inl.h.

◆ hourly_logger_mt()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::hourly_logger_mt ( const std::string logger_name,
const filename_t filename,
bool  truncate = false,
uint16_t  max_files = 0 
)
inline

Definition at line 182 of file hourly_file_sink.h.

◆ hourly_logger_st()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::hourly_logger_st ( const std::string logger_name,
const filename_t filename,
bool  truncate = false,
uint16_t  max_files = 0 
)
inline

Definition at line 189 of file hourly_file_sink.h.

◆ info() [1/2]

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

Definition at line 253 of file spdlog.h.

◆ info() [2/2]

template<typename... Args>
void spdlog::info ( fmt::format_string< Args... >  fmt,
Args &&...  args 
)
inline

Definition at line 155 of file spdlog.h.

◆ init_thread_pool() [1/2]

void spdlog::init_thread_pool ( size_t  q_size,
size_t  thread_count 
)
inline

Definition at line 83 of file async.h.

◆ init_thread_pool() [2/2]

void spdlog::init_thread_pool ( size_t  q_size,
size_t  thread_count,
std::function< void()>  on_thread_start 
)
inline

Definition at line 76 of file async.h.

◆ initialize_logger()

SPDLOG_API void spdlog::initialize_logger ( std::shared_ptr< logger logger)

Definition at line 15 of file spdlog-inl.h.

◆ log() [1/4]

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

Definition at line 185 of file spdlog.h.

◆ log() [2/4]

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

Definition at line 137 of file spdlog.h.

◆ log() [3/4]

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

Definition at line 179 of file spdlog.h.

◆ log() [4/4]

template<typename... Args>
void spdlog::log ( source_loc  source,
level::level_enum  lvl,
fmt::format_string< Args... >  fmt,
Args &&...  args 
)
inline

Definition at line 131 of file spdlog.h.

◆ mongo_logger_mt()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::mongo_logger_mt ( const std::string logger_name,
const std::string db_name,
const std::string collection_name,
const std::string uri = "mongodb://localhost:27017" 
)
inline

Definition at line 85 of file mongo_sink.h.

◆ mongo_logger_st()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::mongo_logger_st ( const std::string logger_name,
const std::string db_name,
const std::string collection_name,
const std::string uri = "mongodb://localhost:27017" 
)
inline

Definition at line 92 of file mongo_sink.h.

◆ null_logger_mt()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::null_logger_mt ( const std::string logger_name)
inline

Definition at line 29 of file null_sink.h.

◆ null_logger_st()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::null_logger_st ( const std::string logger_name)
inline

Definition at line 37 of file null_sink.h.

◆ qt_logger_mt() [1/3]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::qt_logger_mt ( const std::string logger_name,
QObject *  qt_object,
const std::string meta_method 
)
inline

Definition at line 84 of file qt_sinks.h.

◆ qt_logger_mt() [2/3]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::qt_logger_mt ( const std::string logger_name,
QPlainTextEdit *  qt_object,
const std::string meta_method = "appendPlainText" 
)
inline

Definition at line 72 of file qt_sinks.h.

◆ qt_logger_mt() [3/3]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::qt_logger_mt ( const std::string logger_name,
QTextEdit *  qt_object,
const std::string meta_method = "append" 
)
inline

Definition at line 60 of file qt_sinks.h.

◆ qt_logger_st() [1/3]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::qt_logger_st ( const std::string logger_name,
QObject *  qt_object,
const std::string meta_method 
)
inline

Definition at line 90 of file qt_sinks.h.

◆ qt_logger_st() [2/3]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::qt_logger_st ( const std::string logger_name,
QPlainTextEdit *  qt_object,
const std::string meta_method = "appendPlainText" 
)
inline

Definition at line 78 of file qt_sinks.h.

◆ qt_logger_st() [3/3]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::qt_logger_st ( const std::string logger_name,
QTextEdit *  qt_object,
const std::string meta_method = "append" 
)
inline

Definition at line 66 of file qt_sinks.h.

◆ register_logger()

SPDLOG_API void spdlog::register_logger ( std::shared_ptr< logger logger)

Definition at line 80 of file spdlog-inl.h.

◆ rotating_logger_mt()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::rotating_logger_mt ( const std::string logger_name,
const filename_t filename,
size_t  max_file_size,
size_t  max_files,
bool  rotate_on_open = false 
)
inline

Definition at line 62 of file rotating_file_sink.h.

◆ rotating_logger_st()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::rotating_logger_st ( const std::string logger_name,
const filename_t filename,
size_t  max_file_size,
size_t  max_files,
bool  rotate_on_open = false 
)
inline

Definition at line 69 of file rotating_file_sink.h.

◆ set_automatic_registration()

SPDLOG_API void spdlog::set_automatic_registration ( bool  automatic_registration)

Definition at line 105 of file spdlog-inl.h.

◆ set_default_logger()

SPDLOG_API void spdlog::set_default_logger ( std::shared_ptr< spdlog::logger default_logger)

Definition at line 120 of file spdlog-inl.h.

◆ set_error_handler()

SPDLOG_API void spdlog::set_error_handler ( void(*)(const std::string &msg)  handler)

Definition at line 75 of file spdlog-inl.h.

◆ set_formatter()

SPDLOG_API void spdlog::set_formatter ( std::unique_ptr< spdlog::formatter formatter)

Definition at line 25 of file spdlog-inl.h.

◆ set_level()

SPDLOG_API void spdlog::set_level ( level::level_enum  log_level)

Definition at line 60 of file spdlog-inl.h.

◆ set_pattern()

SPDLOG_API void spdlog::set_pattern ( std::string  pattern,
pattern_time_type  time_type 
)

Definition at line 30 of file spdlog-inl.h.

◆ should_log()

SPDLOG_API bool spdlog::should_log ( level::level_enum  log_level)

Definition at line 55 of file spdlog-inl.h.

◆ shutdown()

SPDLOG_API void spdlog::shutdown ( )

Definition at line 100 of file spdlog-inl.h.

◆ stderr_color_mt() [1/2]

template<typename Factory >
SPDLOG_INLINE std::shared_ptr< logger > spdlog::stderr_color_mt ( const std::string logger_name,
color_mode  mode 
)

Definition at line 28 of file stdout_color_sinks-inl.h.

◆ stderr_color_mt() [2/2]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::stderr_color_mt ( const std::string logger_name,
color_mode  mode = color_mode::automatic 
)

Definition at line 28 of file stdout_color_sinks-inl.h.

◆ stderr_color_st() [1/2]

template<typename Factory >
SPDLOG_INLINE std::shared_ptr< logger > spdlog::stderr_color_st ( const std::string logger_name,
color_mode  mode 
)

Definition at line 34 of file stdout_color_sinks-inl.h.

◆ stderr_color_st() [2/2]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::stderr_color_st ( const std::string logger_name,
color_mode  mode = color_mode::automatic 
)

Definition at line 34 of file stdout_color_sinks-inl.h.

◆ stderr_logger_mt() [1/2]

template<typename Factory >
SPDLOG_INLINE std::shared_ptr< logger > spdlog::stderr_logger_mt ( const std::string logger_name)

Definition at line 129 of file stdout_sinks-inl.h.

◆ stderr_logger_mt() [2/2]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::stderr_logger_mt ( const std::string logger_name)

Definition at line 129 of file stdout_sinks-inl.h.

◆ stderr_logger_st() [1/2]

template<typename Factory >
SPDLOG_INLINE std::shared_ptr< logger > spdlog::stderr_logger_st ( const std::string logger_name)

Definition at line 135 of file stdout_sinks-inl.h.

◆ stderr_logger_st() [2/2]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::stderr_logger_st ( const std::string logger_name)

Definition at line 135 of file stdout_sinks-inl.h.

◆ stdout_color_mt() [1/2]

template<typename Factory >
SPDLOG_INLINE std::shared_ptr< logger > spdlog::stdout_color_mt ( const std::string logger_name,
color_mode  mode 
)

Definition at line 16 of file stdout_color_sinks-inl.h.

◆ stdout_color_mt() [2/2]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::stdout_color_mt ( const std::string logger_name,
color_mode  mode = color_mode::automatic 
)

Definition at line 16 of file stdout_color_sinks-inl.h.

◆ stdout_color_st() [1/2]

template<typename Factory >
SPDLOG_INLINE std::shared_ptr< logger > spdlog::stdout_color_st ( const std::string logger_name,
color_mode  mode 
)

Definition at line 22 of file stdout_color_sinks-inl.h.

◆ stdout_color_st() [2/2]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::stdout_color_st ( const std::string logger_name,
color_mode  mode = color_mode::automatic 
)

Definition at line 22 of file stdout_color_sinks-inl.h.

◆ stdout_logger_mt() [1/2]

template<typename Factory >
SPDLOG_INLINE std::shared_ptr< logger > spdlog::stdout_logger_mt ( const std::string logger_name)

Definition at line 117 of file stdout_sinks-inl.h.

◆ stdout_logger_mt() [2/2]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::stdout_logger_mt ( const std::string logger_name)

Definition at line 117 of file stdout_sinks-inl.h.

◆ stdout_logger_st() [1/2]

template<typename Factory >
SPDLOG_INLINE std::shared_ptr< logger > spdlog::stdout_logger_st ( const std::string logger_name)

Definition at line 123 of file stdout_sinks-inl.h.

◆ stdout_logger_st() [2/2]

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::stdout_logger_st ( const std::string logger_name)

Definition at line 123 of file stdout_sinks-inl.h.

◆ swap()

void spdlog::swap ( logger a,
logger b 
)

Definition at line 62 of file logger-inl.h.

◆ syslog_logger_mt()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::syslog_logger_mt ( const std::string logger_name,
const std::string syslog_ident = "",
int  syslog_option = 0,
int  syslog_facility = LOG_USER,
bool  enable_formatting = false 
)
inline

Definition at line 97 of file syslog_sink.h.

◆ syslog_logger_st()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::syslog_logger_st ( const std::string logger_name,
const std::string syslog_ident = "",
int  syslog_option = 0,
int  syslog_facility = LOG_USER,
bool  enable_formatting = false 
)
inline

Definition at line 104 of file syslog_sink.h.

◆ systemd_logger_mt()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::systemd_logger_mt ( const std::string logger_name)
inline

Definition at line 93 of file systemd_sink.h.

◆ systemd_logger_st()

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::systemd_logger_st ( const std::string logger_name)
inline

Definition at line 99 of file systemd_sink.h.

◆ thread_pool()

std::shared_ptr< spdlog::details::thread_pool > spdlog::thread_pool ( )
inline

Definition at line 89 of file async.h.

◆ throw_spdlog_ex() [1/2]

SPDLOG_API void spdlog::throw_spdlog_ex ( const std::string msg,
int  last_errno 
)

Definition at line 68 of file common-inl.h.

◆ throw_spdlog_ex() [2/2]

SPDLOG_API void spdlog::throw_spdlog_ex ( std::string  msg)

Definition at line 73 of file common-inl.h.

◆ to_hex() [1/2]

template<typename Container >
details::dump_info< typename Container::const_iterator > spdlog::to_hex ( const Container &  container,
size_t  size_per_line = 32 
)
inline

Definition at line 63 of file bin_to_hex.h.

◆ to_hex() [2/2]

template<typename It >
details::dump_info< It > spdlog::to_hex ( const It  range_begin,
const It  range_end,
size_t  size_per_line = 32 
)
inline

Definition at line 72 of file bin_to_hex.h.

◆ trace() [1/2]

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

Definition at line 241 of file spdlog.h.

◆ trace() [2/2]

template<typename... Args>
void spdlog::trace ( fmt::format_string< Args... >  fmt,
Args &&...  args 
)
inline

Definition at line 143 of file spdlog.h.

◆ warn() [1/2]

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

Definition at line 259 of file spdlog.h.

◆ warn() [2/2]

template<typename... Args>
void spdlog::warn ( fmt::format_string< Args... >  fmt,
Args &&...  args 
)
inline

Definition at line 161 of file spdlog.h.