mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
formatting
This commit is contained in:
@@ -27,40 +27,84 @@ public:
|
||||
logger(const std::string &name, sink_ptr single_sink);
|
||||
logger(const std::string &name, sinks_init_list sinks);
|
||||
|
||||
template<class It> logger(std::string name, const It &begin, const It &end);
|
||||
template<class It>
|
||||
logger(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... 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);
|
||||
|
||||
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
|
||||
template<typename... Args> void log(level::level_enum lvl, const wchar_t *msg);
|
||||
template<typename... Args> void log(level::level_enum lvl, const wchar_t *fmt, const Args &... args);
|
||||
template<typename... Args> void trace(const wchar_t *fmt, const Args &... args);
|
||||
template<typename... Args> void debug(const wchar_t *fmt, const Args &... args);
|
||||
template<typename... Args> void info(const wchar_t *fmt, const Args &... args);
|
||||
template<typename... Args> void warn(const wchar_t *fmt, const Args &... args);
|
||||
template<typename... Args> void error(const wchar_t *fmt, const Args &... args);
|
||||
template<typename... Args> void critical(const wchar_t *fmt, const Args &... args);
|
||||
#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
|
||||
template<typename... Args>
|
||||
void log(level::level_enum lvl, const wchar_t *msg);
|
||||
|
||||
template<typename T> void log(level::level_enum lvl, const T &);
|
||||
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);
|
||||
template<typename... Args>
|
||||
void log(level::level_enum lvl, const wchar_t *fmt, const Args &... args);
|
||||
|
||||
template<typename... Args>
|
||||
void trace(const wchar_t *fmt, const Args &... args);
|
||||
|
||||
template<typename... Args>
|
||||
void debug(const wchar_t *fmt, const Args &... args);
|
||||
|
||||
template<typename... Args>
|
||||
void info(const wchar_t *fmt, const Args &... args);
|
||||
|
||||
template<typename... Args>
|
||||
void warn(const wchar_t *fmt, const Args &... args);
|
||||
|
||||
template<typename... Args>
|
||||
void error(const wchar_t *fmt, const Args &... args);
|
||||
|
||||
template<typename... Args>
|
||||
void critical(const wchar_t *fmt, const Args &... args);
|
||||
|
||||
#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
|
||||
template<typename T>
|
||||
void log(level::level_enum lvl, const T &);
|
||||
|
||||
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;
|
||||
void set_level(level::level_enum log_level);
|
||||
|
Reference in New Issue
Block a user