Software /
code /
prosody
Comparison
core/loggingmanager.lua @ 1344:ca74a6a38dfb
loggingmanager: Log timestamps when using default file logging
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 19 Jun 2009 17:23:17 +0100 |
parent | 1343:a0bee511d144 |
child | 1522:569d58d21612 |
comparison
equal
deleted
inserted
replaced
1343:a0bee511d144 | 1344:ca74a6a38dfb |
---|---|
18 | 18 |
19 module "loggingmanager" | 19 module "loggingmanager" |
20 | 20 |
21 -- The log config used if none specified in the config file | 21 -- The log config used if none specified in the config file |
22 local default_logging = { { to = "console" } }; | 22 local default_logging = { { to = "console" } }; |
23 local default_file_logging = { { to = "file", levels = { min = (debug_mode and "debug") or "info" } } }; | 23 local default_file_logging = { { to = "file", levels = { min = (debug_mode and "debug") or "info" }, timestamps = true } }; |
24 local default_timestamp = "%b %d %T"; | 24 local default_timestamp = "%b %d %T"; |
25 -- The actual config loggingmanager is using | 25 -- The actual config loggingmanager is using |
26 local logging_config = config.get("*", "core", "log") or default_logging; | 26 local logging_config = config.get("*", "core", "log") or default_logging; |
27 | 27 |
28 local apply_sink_rules; | 28 local apply_sink_rules; |