Comparison

core/loggingmanager.lua @ 8720:dba17a70fd22

util.startup: Initialize prosody.log / _G.log here instead of in loggingmanager to reduce dependencies
author Kim Alvefur <zash@zash.se>
date Thu, 05 Apr 2018 17:52:37 +0200
parent 8693:6e24a69b03af
child 8721:b773b15fee71
comparison
equal deleted inserted replaced
8719:0cb84aafeee6 8720: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)