Software /
code /
prosody
Comparison
core/loggingmanager.lua @ 7006:93771dad3e05
loggingmanager: Add prosody.log (intended to be used instead of _G.log now)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 11 Dec 2015 14:00:42 +0000 |
parent | 6779:6236668da30a |
child | 7125:631c47a65519 |
comparison
equal
deleted
inserted
replaced
6987:06696882d972 | 7006:93771dad3e05 |
---|---|
24 local config = require "core.configmanager"; | 24 local config = require "core.configmanager"; |
25 local logger = require "util.logger"; | 25 local logger = require "util.logger"; |
26 local prosody = prosody; | 26 local prosody = prosody; |
27 | 27 |
28 _G.log = logger.init("general"); | 28 _G.log = logger.init("general"); |
29 prosody.log = logger.init("general"); | |
29 | 30 |
30 local _ENV = nil; | 31 local _ENV = nil; |
31 | 32 |
32 -- The log config used if none specified in the config file (see reload_logging for initialization) | 33 -- The log config used if none specified in the config file (see reload_logging for initialization) |
33 local default_logging; | 34 local default_logging; |