19#include "LIEF/visibility.h"
45LIEF_API
const char* to_string(LEVEL e);
48LIEF_API
void disable();
51LIEF_API
void enable();
54LIEF_API
void set_level(LEVEL level);
57LIEF_API
void set_path(
const std::string& path);
60LIEF_API
void log(LEVEL level,
const std::string& msg);
62LIEF_API
void log(LEVEL level,
const std::string& fmt,
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);
72LIEF_API
void set_logger(
const spdlog::logger& logger);
LIEF namespace.
Definition Abstract/Binary.hpp:31