Ark Server API (ASE) - Wiki
|
#include <logger.h>
Public Member Functions | |
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) | |
virtual | ~logger () |
logger (const logger &)=delete | |
logger & | operator= (const logger &)=delete |
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 Arg1 , typename... Args> | |
void | trace (const char *fmt, const Arg1 &, const Args &... args) |
template<typename Arg1 , typename... Args> | |
void | debug (const char *fmt, const Arg1 &, const Args &... args) |
template<typename Arg1 , typename... Args> | |
void | info (const char *fmt, const Arg1 &, const Args &... args) |
template<typename Arg1 , typename... Args> | |
void | warn (const char *fmt, const Arg1 &, const Args &... args) |
template<typename Arg1 , typename... Args> | |
void | error (const char *fmt, const Arg1 &, const Args &... args) |
template<typename Arg1 , typename... Args> | |
void | critical (const char *fmt, const Arg1 &, const Args &... args) |
template<typename T > | |
void | log (level::level_enum lvl, const T &) |
template<typename T > | |
void | trace (const T &) |
template<typename T > | |
void | debug (const T &) |
template<typename T > | |
void | info (const T &) |
template<typename T > | |
void | warn (const T &) |
template<typename T > | |
void | error (const T &) |
template<typename T > | |
void | critical (const T &) |
bool | should_log (level::level_enum) const |
void | set_level (level::level_enum) |
level::level_enum | level () const |
const std::string & | name () const |
void | set_pattern (const std::string &, pattern_time_type=pattern_time_type::local) |
void | set_formatter (formatter_ptr) |
void | flush_on (level::level_enum log_level) |
virtual void | flush () |
const std::vector< sink_ptr > & | sinks () const |
virtual void | set_error_handler (log_err_handler) |
virtual log_err_handler | error_handler () |
Protected Member Functions | |
virtual void | _sink_it (details::log_msg &) |
virtual void | _set_pattern (const std::string &, pattern_time_type) |
virtual void | _set_formatter (formatter_ptr) |
virtual void | _default_err_handler (const std::string &msg) |
bool | _should_flush_on (const details::log_msg &) |
void | _incr_msg_counter (details::log_msg &msg) |
Protected Attributes | |
const std::string | _name |
std::vector< sink_ptr > | _sinks |
formatter_ptr | _formatter |
spdlog::level_t | _level |
spdlog::level_t | _flush_level |
log_err_handler | _err_handler |
std::atomic< time_t > | _last_err_time |
std::atomic< size_t > | _msg_counter |
|
inline |
Definition at line 39 of file logger_impl.h.
|
inline |
Definition at line 33 of file logger_impl.h.
|
inline |
Definition at line 17 of file logger_impl.h.
|
inlinevirtualdefault |
|
delete |
|
inlineprotectedvirtual |
Definition at line 344 of file logger_impl.h.
|
inlineprotected |
Definition at line 364 of file logger_impl.h.
|
inlineprotectedvirtual |
Reimplemented in spdlog::SPDLOG_FINAL.
Definition at line 333 of file logger_impl.h.
|
inlineprotectedvirtual |
Reimplemented in spdlog::SPDLOG_FINAL.
Definition at line 329 of file logger_impl.h.
|
inlineprotected |
|
inlineprotectedvirtual |
Reimplemented in spdlog::SPDLOG_FINAL.
Definition at line 311 of file logger_impl.h.
|
inline |
Definition at line 161 of file logger_impl.h.
|
inline |
Definition at line 200 of file logger_impl.h.
|
inline |
Definition at line 137 of file logger_impl.h.
|
inline |
Definition at line 174 of file logger_impl.h.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in spdlog::SPDLOG_FINAL.
Definition at line 287 of file logger_impl.h.
|
inlinevirtual |
Reimplemented in spdlog::SPDLOG_FINAL.
Definition at line 338 of file logger_impl.h.
|
inline |
Definition at line 293 of file logger_impl.h.
|
inline |
Definition at line 143 of file logger_impl.h.
|
inline |
|
inline |
Definition at line 298 of file logger_impl.h.
|
inline |
Definition at line 61 of file logger_impl.h.
|
inline |
Definition at line 88 of file logger_impl.h.
|
inline |
Definition at line 109 of file logger_impl.h.
|
inline |
Definition at line 272 of file logger_impl.h.
|
inlinevirtual |
Reimplemented in spdlog::SPDLOG_FINAL.
Definition at line 282 of file logger_impl.h.
|
inline |
|
inline |
Definition at line 277 of file logger_impl.h.
|
inline |
Definition at line 55 of file logger_impl.h.
|
inline |
Definition at line 303 of file logger_impl.h.
|
inline |
Definition at line 369 of file logger_impl.h.
|
inline |
Definition at line 131 of file logger_impl.h.
|
inline |
Definition at line 168 of file logger_impl.h.
|
inline |
|
inline |
Definition at line 188 of file logger_impl.h.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |