Agora
1.2.0
Agora project
|
#include <logger.h>
Public Member Functions | |
logger (std::string name) | |
template<typename It > | |
logger (std::string name, It begin, It end) | |
logger (std::string name, sink_ptr single_sink) | |
logger (std::string name, sinks_init_list sinks) | |
virtual | ~logger ()=default |
logger (const logger &other) | |
logger (logger &&other) SPDLOG_NOEXCEPT | |
logger & | operator= (logger other) SPDLOG_NOEXCEPT |
void | swap (spdlog::logger &other) SPDLOG_NOEXCEPT |
template<typename... Args> | |
void | log (source_loc loc, level::level_enum lvl, format_string_t< Args... > fmt, Args &&... args) |
template<typename... Args> | |
void | log (level::level_enum lvl, format_string_t< Args... > fmt, Args &&... args) |
template<typename T > | |
void | log (level::level_enum lvl, const T &msg) |
template<class T , typename std::enable_if<!is_convertible_to_any_format_string< const T & >::value, int >::type = 0> | |
void | log (source_loc loc, level::level_enum lvl, const T &msg) |
void | log (log_clock::time_point log_time, source_loc loc, level::level_enum lvl, string_view_t msg) |
void | log (source_loc loc, level::level_enum lvl, string_view_t msg) |
void | log (level::level_enum lvl, string_view_t msg) |
template<typename... Args> | |
void | trace (format_string_t< Args... > fmt, Args &&... args) |
template<typename... Args> | |
void | debug (format_string_t< Args... > fmt, Args &&... args) |
template<typename... Args> | |
void | info (format_string_t< Args... > fmt, Args &&... args) |
template<typename... Args> | |
void | warn (format_string_t< Args... > fmt, Args &&... args) |
template<typename... Args> | |
void | error (format_string_t< Args... > fmt, Args &&... args) |
template<typename... Args> | |
void | critical (format_string_t< Args... > fmt, Args &&... args) |
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) |
bool | should_log (level::level_enum msg_level) const |
bool | should_backtrace () const |
void | set_level (level::level_enum log_level) |
level::level_enum | level () const |
const std::string & | name () const |
void | set_formatter (std::unique_ptr< formatter > f) |
void | set_pattern (std::string pattern, pattern_time_type time_type=pattern_time_type::local) |
void | enable_backtrace (size_t n_messages) |
void | disable_backtrace () |
void | dump_backtrace () |
void | flush () |
void | flush_on (level::level_enum log_level) |
level::level_enum | flush_level () const |
const std::vector< sink_ptr > & | sinks () const |
std::vector< sink_ptr > & | sinks () |
void | set_error_handler (err_handler) |
virtual std::shared_ptr< logger > | clone (std::string logger_name) |
Protected Member Functions | |
template<typename... Args> | |
void | log_ (source_loc loc, level::level_enum lvl, string_view_t fmt, Args &&... args) |
void | log_it_ (const details::log_msg &log_msg, bool log_enabled, bool traceback_enabled) |
virtual void | sink_it_ (const details::log_msg &msg) |
virtual void | flush_ () |
void | dump_backtrace_ () |
bool | should_flush_ (const details::log_msg &msg) |
void | err_handler_ (const std::string &msg) |
Protected Attributes | |
std::string | name_ |
std::vector< sink_ptr > | sinks_ |
spdlog::level_t | level_ {level::info} |
spdlog::level_t | flush_level_ {level::off} |
err_handler | custom_err_handler_ {nullptr} |
details::backtracer | tracer_ |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
virtualdefault |
SPDLOG_INLINE spdlog::logger::logger | ( | const logger & | other | ) |
SPDLOG_INLINE spdlog::logger::logger | ( | logger && | other | ) |
|
virtual |
Reimplemented in spdlog::async_logger.
|
inline |
|
inline |
|
inline |
|
inline |
SPDLOG_INLINE void spdlog::logger::disable_backtrace | ( | ) |
SPDLOG_INLINE void spdlog::logger::dump_backtrace | ( | ) |
|
protected |
SPDLOG_INLINE void spdlog::logger::enable_backtrace | ( | size_t | n_messages | ) |
|
protected |
|
inline |
|
inline |
SPDLOG_INLINE void spdlog::logger::flush | ( | ) |
|
protectedvirtual |
SPDLOG_INLINE level::level_enum spdlog::logger::flush_level | ( | ) | const |
SPDLOG_INLINE void spdlog::logger::flush_on | ( | level::level_enum | log_level | ) |
|
inline |
|
inline |
SPDLOG_INLINE level::level_enum spdlog::logger::level | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
protected |
const SPDLOG_INLINE std::string & spdlog::logger::name | ( | ) | const |
SPDLOG_INLINE logger & spdlog::logger::operator= | ( | logger | other | ) |
SPDLOG_INLINE void spdlog::logger::set_error_handler | ( | err_handler | handler | ) |
SPDLOG_INLINE void spdlog::logger::set_formatter | ( | std::unique_ptr< formatter > | f | ) |
SPDLOG_INLINE void spdlog::logger::set_level | ( | level::level_enum | log_level | ) |
SPDLOG_INLINE void spdlog::logger::set_pattern | ( | std::string | pattern, |
pattern_time_type | time_type = pattern_time_type::local |
||
) |
|
inline |
|
protected |
|
inline |
|
protectedvirtual |
Reimplemented in spdlog::async_logger.
std::vector<sink_ptr>& spdlog::logger::sinks | ( | ) |
SPDLOG_INLINE std::vector< sink_ptr > & spdlog::logger::sinks | ( | ) | const |
SPDLOG_INLINE void spdlog::logger::swap | ( | spdlog::logger & | other | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |