Add the log domains for the new widget library.
This commit is contained in:
parent
f6bb0f1114
commit
c337d1be31
2 changed files with 4 additions and 2 deletions
|
@ -58,7 +58,9 @@ logger err("error", 0), warn("warning", 1), info("info", 2), debug("debug", 3);
|
|||
log_domain general("general"), ai("ai"), config("config"), display("display"),
|
||||
engine("engine"), network("network"), mp_server("server"),
|
||||
filesystem("filesystem"), audio("audio"), notifs("notifs"),
|
||||
replay("replay"), help("help");
|
||||
replay("replay"), help("help"), gui("gui"), gui_parse("gui_parse"),
|
||||
gui_draw("gui_draw"), gui_event("gui_event");
|
||||
|
||||
log_domain::log_domain(char const *name) : domain_(log_domains.size())
|
||||
{
|
||||
logd d = { name, 0 };
|
||||
|
|
|
@ -50,7 +50,7 @@ std::string get_timestamp(const time_t& t, const std::string& format="%Y%m%d %T
|
|||
|
||||
extern logger err, warn, info, debug;
|
||||
extern log_domain general, ai, config, display, engine, network, mp_server,
|
||||
filesystem, audio, notifs, replay, help;
|
||||
filesystem, audio, notifs, replay, help, gui, gui_parse, gui_draw, gui_event;
|
||||
|
||||
class scope_logger
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue