From 690c501c98bf29eea834a732100f5665b66fb43f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 3 May 2009 17:13:43 +0100 Subject: loggingmanager: Support for specifying a single sink with *sinkname (*syslog should now work) --- core/loggingmanager.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/loggingmanager.lua') 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 -- cgit v1.2.3