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; |