Horizon
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
horizon::Logger Class Reference

Classes

class  Item
 

Public Types

enum  Level {
  DEBUG, INFO, WARNING, CRITICAL,
  DEBUG, INFO, WARNING, CRITICAL
}
 
enum  Domain {
  UNSPECIFIED, BOARD, SCHEMATIC, BLOCK,
  TOOL, CORE, CANVAS, IMP,
  IMPORT, VERSION, UNSPECIFIED, BOARD,
  SCHEMATIC, BLOCK, TOOL, CORE,
  CANVAS, IMP, IMPORT, VERSION
}
 
enum  Level {
  DEBUG, INFO, WARNING, CRITICAL,
  DEBUG, INFO, WARNING, CRITICAL
}
 
enum  Domain {
  UNSPECIFIED, BOARD, SCHEMATIC, BLOCK,
  TOOL, CORE, CANVAS, IMP,
  IMPORT, VERSION, UNSPECIFIED, BOARD,
  SCHEMATIC, BLOCK, TOOL, CORE,
  CANVAS, IMP, IMPORT, VERSION
}
 
typedef std::function< void(const Item &it)> log_handler_t
 
typedef std::function< void(const Item &it)> log_handler_t
 

Public Member Functions

void log (Level level, const std::string &message, Domain domain=Domain::UNSPECIFIED, const std::string &detail="")
 
void set_log_handler (log_handler_t handler)
 
void log (Level level, const std::string &message, Domain domain=Domain::UNSPECIFIED, const std::string &detail="")
 
void set_log_handler (log_handler_t handler)
 

Static Public Member Functions

static Loggerget ()
 
static std::string level_to_string (Level level)
 
static std::string domain_to_string (Domain domain)
 
static void log_debug (const std::string &message, Domain domain=Domain::UNSPECIFIED, const std::string &detail="")
 
static void log_info (const std::string &message, Domain domain=Domain::UNSPECIFIED, const std::string &detail="")
 
static void log_warning (const std::string &message, Domain domain=Domain::UNSPECIFIED, const std::string &detail="")
 
static void log_critical (const std::string &message, Domain domain=Domain::UNSPECIFIED, const std::string &detail="")
 
static Loggerget ()
 
static std::string level_to_string (Level level)
 
static std::string domain_to_string (Domain domain)
 
static void log_debug (const std::string &message, Domain domain=Domain::UNSPECIFIED, const std::string &detail="")
 
static void log_info (const std::string &message, Domain domain=Domain::UNSPECIFIED, const std::string &detail="")
 
static void log_warning (const std::string &message, Domain domain=Domain::UNSPECIFIED, const std::string &detail="")
 
static void log_critical (const std::string &message, Domain domain=Domain::UNSPECIFIED, const std::string &detail="")
 

The documentation for this class was generated from the following files: