LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Classes | |
class | Scoped |
Enumerations | |
enum class | LEVEL : uint32_t { OFF = 0 , TRACE , DEBUG , INFO , WARN , ERR , CRITICAL } |
Hierarchical logging level More... | |
Functions | |
LEVEL | get_level () |
Current log level. | |
const char * | to_string (LEVEL e) |
void | disable () |
Globally disable the logging module. | |
void | enable () |
Globally enable the logging module. | |
void | set_level (LEVEL level) |
Change the logging level (hierarchical) | |
void | set_path (const std::string &path) |
Change the logger as a file-base logging and set its path. | |
void | log (LEVEL level, const std::string &msg) |
Log a message with the LIEF's logger. | |
void | log (LEVEL level, const std::string &fmt, const std::vector< std::string > &args) |
template<typename... Args> | |
void | log (LEVEL level, const std::string &fmt, const Args &... args) |
void | set_logger (std::shared_ptr< spdlog::logger > logger) |
void | reset () |
void | enable_debug () |
void | debug (const std::string &msg) |
void | debug (const std::string &fmt, const std::vector< std::string > &args) |
template<typename... Args> | |
void | debug (const std::string &fmt, const Args &... args) |
void | info (const std::string &msg) |
void | info (const std::string &fmt, const std::vector< std::string > &args) |
template<typename... Args> | |
void | info (const std::string &fmt, const Args &... args) |
void | warn (const std::string &msg) |
void | warn (const std::string &fmt, const std::vector< std::string > &args) |
template<typename... Args> | |
void | warn (const std::string &fmt, const Args &... args) |
void | err (const std::string &msg) |
void | err (const std::string &fmt, const std::vector< std::string > &args) |
template<typename... Args> | |
void | err (const std::string &fmt, const Args &... args) |
void | critical (const std::string &msg) |
void | critical (const std::string &fmt, const std::vector< std::string > &args) |
template<typename... Args> | |
void | critical (const std::string &fmt, const Args &... args) |
|
strong |
Hierarchical logging level
From a given level set, all levels below this ! level are enabled
For example, if LEVEL::INFO is enabled then LEVEL::WARN, LEVEL::ERR are also enabled
Enumerator | |
---|---|
OFF | |
TRACE | |
DEBUG | |
INFO | |
WARN | |
ERR | |
CRITICAL |
void LIEF::logging::critical | ( | const std::string & | fmt, |
const Args &... | args ) |
References critical().
|
inline |
|
inline |
References CRITICAL, and log().
Referenced by critical().
void LIEF::logging::debug | ( | const std::string & | fmt, |
const Args &... | args ) |
References debug().
|
inline |
|
inline |
void LIEF::logging::disable | ( | ) |
Globally disable the logging module.
void LIEF::logging::enable | ( | ) |
Globally enable the logging module.
|
inline |
References DEBUG, and set_level().
void LIEF::logging::err | ( | const std::string & | fmt, |
const Args &... | args ) |
References err().
|
inline |
|
inline |
LEVEL LIEF::logging::get_level | ( | ) |
Current log level.
void LIEF::logging::info | ( | const std::string & | fmt, |
const Args &... | args ) |
References info().
|
inline |
|
inline |
void LIEF::logging::log | ( | LEVEL | level, |
const std::string & | fmt, | ||
const Args &... | args ) |
References log().
void LIEF::logging::log | ( | LEVEL | level, |
const std::string & | fmt, | ||
const std::vector< std::string > & | args ) |
void LIEF::logging::log | ( | LEVEL | level, |
const std::string & | msg ) |
void LIEF::logging::reset | ( | ) |
void LIEF::logging::set_level | ( | LEVEL | level | ) |
Change the logging level (hierarchical)
Referenced by enable_debug(), and LIEF::logging::Scoped::set_level().
void LIEF::logging::set_logger | ( | std::shared_ptr< spdlog::logger > | logger | ) |
void LIEF::logging::set_path | ( | const std::string & | path | ) |
Change the logger as a file-base logging and set its path.
const char * LIEF::logging::to_string | ( | LEVEL | e | ) |
void LIEF::logging::warn | ( | const std::string & | fmt, |
const Args &... | args ) |
References warn().
|
inline |