63 const std::vector<std::string>& args);
65template <
typename... Args>
66void log(
LEVEL level,
const std::string& fmt,
const Args &... args) {
67 std::vector<std::string> vec_args;
68 vec_args.insert(vec_args.end(), { static_cast<decltype(vec_args)::value_type>(args)...});
69 return log(level, fmt, vec_args);
void set_path(const std::string &path)
Change the logger as a file-base logging and set its path.
void enable()
Globally enable the logging module.
void disable()
Globally disable the logging module.
LEVEL
Hierarchical logging level
Definition logging.hpp:36
void log(LEVEL level, const std::string &msg)
Log a message with the LIEF's logger.
void set_level(LEVEL level)
Change the logging level (hierarchical)
void set_logger(const spdlog::logger &logger)
const char * to_string(LEVEL e)
LIEF namespace.
Definition Abstract/Binary.hpp:32
Definition logging.hpp:24
#define LIEF_API
Definition visibility.h:41