LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
logging.hpp File Reference
#include "LIEF/visibility.h"
#include <string>
#include <memory>
#include <vector>
#include <cstdint>
Include dependency graph for logging.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LIEF::logging::Scoped
 

Namespaces

namespace  spdlog
 
namespace  LIEF
 LIEF namespace.
 
namespace  LIEF::logging
 
namespace  LIEF::logging::named
 

Enumerations

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

Functions

LEVEL LIEF::logging::get_level ()
 Current log level.
 
const char * LIEF::logging::to_string (LEVEL e)
 
void LIEF::logging::disable ()
 Globally disable the logging module.
 
void LIEF::logging::enable ()
 Globally enable the logging module.
 
void LIEF::logging::set_level (LEVEL level)
 Change the logging level (hierarchical)
 
void LIEF::logging::set_path (const std::string &path)
 Change the logger as a file-base logging and set its path.
 
void LIEF::logging::log (LEVEL level, const std::string &msg)
 Log a message with the LIEF's logger.
 
void LIEF::logging::log (LEVEL level, const std::string &fmt, const std::vector< std::string > &args)
 
template<typename... Args>
void LIEF::logging::log (LEVEL level, const std::string &fmt, const Args &... args)
 
void LIEF::logging::set_logger (std::shared_ptr< spdlog::logger > logger)
 
void LIEF::logging::reset ()
 
void LIEF::logging::enable_debug ()
 
void LIEF::logging::debug (const std::string &msg)
 
void LIEF::logging::debug (const std::string &fmt, const std::vector< std::string > &args)
 
template<typename... Args>
void LIEF::logging::debug (const std::string &fmt, const Args &... args)
 
void LIEF::logging::info (const std::string &msg)
 
void LIEF::logging::info (const std::string &fmt, const std::vector< std::string > &args)
 
template<typename... Args>
void LIEF::logging::info (const std::string &fmt, const Args &... args)
 
void LIEF::logging::warn (const std::string &msg)
 
void LIEF::logging::warn (const std::string &fmt, const std::vector< std::string > &args)
 
template<typename... Args>
void LIEF::logging::warn (const std::string &fmt, const Args &... args)
 
void LIEF::logging::err (const std::string &msg)
 
void LIEF::logging::err (const std::string &fmt, const std::vector< std::string > &args)
 
template<typename... Args>
void LIEF::logging::err (const std::string &fmt, const Args &... args)
 
void LIEF::logging::critical (const std::string &msg)
 
void LIEF::logging::critical (const std::string &fmt, const std::vector< std::string > &args)
 
template<typename... Args>
void LIEF::logging::critical (const std::string &fmt, const Args &... args)
 
LEVEL LIEF::logging::named::get_level (const char *name)
 Get the logging level for the logger with the given name.
 
void LIEF::logging::named::disable (const char *name)
 Disable the logger with the given name.
 
void LIEF::logging::named::enable (const char *name)
 Enable the logger with the given name.
 
void LIEF::logging::named::set_level (const char *name, LEVEL level)
 Set the log level for the logger with the given name.
 
void LIEF::logging::named::set_path (const char *name, const std::string &path)
 Change the logger with the given as a file-base logging and set its path.
 
void LIEF::logging::named::log (const char *name, LEVEL level, const std::string &msg)
 Log a message with the logger whose name in provided in the first parameter.
 
void LIEF::logging::named::set_logger (const char *name, std::shared_ptr< spdlog::logger > logger)
 Set a spdlog sink for the logger with the given name.
 
void LIEF::logging::named::reset (const char *name)
 Reset the logger with the given name.
 
void LIEF::logging::named::enable_debug (const char *name)
 Enable debug logging for the logger with the given name.
 
void LIEF::logging::named::debug (const char *name, const std::string &msg)
 
void LIEF::logging::named::info (const char *name, const std::string &msg)
 
void LIEF::logging::named::warn (const char *name, const std::string &msg)
 
void LIEF::logging::named::err (const char *name, const std::string &msg)
 
void LIEF::logging::named::critical (const char *name, const std::string &msg)