core/loggingmanager.lua
changeset 8723 dba17a70fd22
parent 8696 6e24a69b03af
child 8724 b773b15fee71
equal deleted inserted replaced
8722:0cb84aafeee6 8723:dba17a70fd22
    17 local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring;
    17 local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring;
    18 
    18 
    19 local config = require "core.configmanager";
    19 local config = require "core.configmanager";
    20 local logger = require "util.logger";
    20 local logger = require "util.logger";
    21 local prosody = prosody;
    21 local prosody = prosody;
    22 
       
    23 _G.log = logger.init("general");
       
    24 prosody.log = logger.init("general");
       
    25 
    22 
    26 local _ENV = nil;
    23 local _ENV = nil;
    27 -- luacheck: std none
    24 -- luacheck: std none
    28 
    25 
    29 -- The log config used if none specified in the config file (see reload_logging for initialization)
    26 -- The log config used if none specified in the config file (see reload_logging for initialization)