Horizon
Loading...
Searching...
No Matches
horizon::Logger Class Reference

Classes

class  Item

Public Types

enum class  Level { DEBUG , INFO , WARNING , CRITICAL }
enum class  Domain {
  UNSPECIFIED , BOARD , SCHEMATIC , BLOCK ,
  TOOL , CORE , CANVAS , IMP ,
  IMPORT , VERSION , POOL_UPDATE , PICTURE ,
  PART , PROJECT , BLOCKS
}
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)

Static Public Member Functions

static Logger & get ()
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: