aboutsummaryrefslogtreecommitdiffstats
path: root/core/loggingmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-03 17:13:43 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-03 17:13:43 +0100
commit690c501c98bf29eea834a732100f5665b66fb43f (patch)
tree53983bde427b1885b470613294fac001221b0889 /core/loggingmanager.lua
parent7be3d9f227ff8083e396497507dbdfe9a6049ca8 (diff)
downloadprosody-690c501c98bf29eea834a732100f5665b66fb43f.tar.gz
prosody-690c501c98bf29eea834a732100f5665b66fb43f.zip
loggingmanager: Support for specifying a single sink with *sinkname (*syslog should now work)
Diffstat (limited to 'core/loggingmanager.lua')
-rw-r--r--core/loggingmanager.lua3
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