Software / code / prosody
Comparison
core/loggingmanager.lua @ 1046:6fef969ff307
core.loggingmanager: Reinstating global log() function
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 23 Apr 2009 02:55:31 +0100 |
| parent | 1031:ec013f93de81 |
| child | 1067:21f41b06f1d2 |
comparison
equal
deleted
inserted
replaced
| 1045:06887b889b17 | 1046:6fef969ff307 |
|---|---|
| 10 local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring; | 10 local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring; |
| 11 | 11 |
| 12 local config = require "core.configmanager"; | 12 local config = require "core.configmanager"; |
| 13 | 13 |
| 14 local logger = require "util.logger"; | 14 local logger = require "util.logger"; |
| 15 | |
| 16 _G.log = logger.init("general"); | |
| 15 | 17 |
| 16 module "loggingmanager" | 18 module "loggingmanager" |
| 17 | 19 |
| 18 -- The log config used if none specified in the config file | 20 -- The log config used if none specified in the config file |
| 19 local default_logging = { { to = "console" } }; | 21 local default_logging = { { to = "console" } }; |