LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
LIEF::logging Namespace Reference

Enumerations

enum class  LEVEL {
  TRACE = 0 , DEBUG , INFO , WARN ,
  ERR , CRITICAL
}
 Hierarchical logging level More...
 

Functions

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 (const spdlog::logger &logger)
 
void reset ()
 

Enumeration Type Documentation

◆ LEVEL

enum class LIEF::logging::LEVEL
strong

Hierarchical logging level

From a given level set, all levels below this ! level are enabled

For example, if LOG_INFO is enabled then LOG_WARN, LOG_ERR are also enabled

Enumerator
TRACE 
DEBUG 
INFO 
WARN 
ERR 
CRITICAL 

Function Documentation

◆ disable()

void LIEF::logging::disable ( )

Globally disable the logging module.

◆ enable()

void LIEF::logging::enable ( )

Globally enable the logging module.

◆ log() [1/3]

template<typename... Args>
void LIEF::logging::log ( LEVEL level,
const std::string & fmt,
const Args &... args )

References log().

◆ log() [2/3]

void LIEF::logging::log ( LEVEL level,
const std::string & fmt,
const std::vector< std::string > & args )

◆ log() [3/3]

void LIEF::logging::log ( LEVEL level,
const std::string & msg )

Log a message with the LIEF's logger.

Referenced by log().

◆ reset()

void LIEF::logging::reset ( )

◆ set_level()

void LIEF::logging::set_level ( LEVEL level)

Change the logging level (hierarchical)

◆ set_logger()

void LIEF::logging::set_logger ( const spdlog::logger & logger)

◆ set_path()

void LIEF::logging::set_path ( const std::string & path)

Change the logger as a file-base logging and set its path.

◆ to_string()

const char * LIEF::logging::to_string ( LEVEL e)