Software /
code /
prosody
Comparison
core/loggingmanager.lua @ 2966:e78436234775
loggingmanager: Fix syntax error :)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 07 Apr 2010 21:08:16 +0100 |
parent | 2963:abd1a30330e0 |
child | 3020:4164023a2258 |
comparison
equal
deleted
inserted
replaced
2965:0fe9cfaeaed7 | 2966:e78436234775 |
---|---|
31 _G.log = logger.init("general"); | 31 _G.log = logger.init("general"); |
32 | 32 |
33 module "loggingmanager" | 33 module "loggingmanager" |
34 | 34 |
35 -- The log config used if none specified in the config file | 35 -- The log config used if none specified in the config file |
36 local default_logging = { { to = "console" , levels = { min = (debug_mode and "debug" ) } }; | 36 local default_logging = { { to = "console" , levels = { min = (debug_mode and "debug" ) } } }; |
37 local default_file_logging = { { to = "file", levels = { min = (debug_mode and "debug") or "info" }, timestamps = true } }; | 37 local default_file_logging = { { to = "file", levels = { min = (debug_mode and "debug") or "info" }, timestamps = true } }; |
38 local default_timestamp = "%b %d %H:%M:%S"; | 38 local default_timestamp = "%b %d %H:%M:%S"; |
39 -- The actual config loggingmanager is using | 39 -- The actual config loggingmanager is using |
40 local logging_config = config.get("*", "core", "log") or default_logging; | 40 local logging_config = config.get("*", "core", "log") or default_logging; |
41 | 41 |