diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-03 17:13:43 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-03 17:13:43 +0100 |
commit | 690c501c98bf29eea834a732100f5665b66fb43f (patch) | |
tree | 53983bde427b1885b470613294fac001221b0889 /core | |
parent | 7be3d9f227ff8083e396497507dbdfe9a6049ca8 (diff) | |
download | prosody-690c501c98bf29eea834a732100f5665b66fb43f.tar.gz prosody-690c501c98bf29eea834a732100f5665b66fb43f.zip |
loggingmanager: Support for specifying a single sink with *sinkname (*syslog should now work)
Diffstat (limited to 'core')
-rw-r--r-- | core/loggingmanager.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua index ea0f497d..58108a23 100644 --- a/core/loggingmanager.lua +++ b/core/loggingmanager.lua @@ -86,6 +86,9 @@ function apply_sink_rules(sink_type) add_rule(sink_config); sink_config.filename = nil; end + elseif type(logging_config) == "string" and logging_config:match("^%*(.+)") == sink_type then + -- Log all levels (debug+) to this sink + add_rule({ levels = { min = "debug" }, to = sink_type }); end end |