# HG changeset patch # User Matthew Wild # Date 1241367223 -3600 # Node ID fb096ca4b2960aea7543e8a56a34f5965aa1022a # Parent 127e6ae089f8e509f6b6d0df1fbf5bc5f3d6a020 loggingmanager: Support for specifying a single sink with *sinkname (*syslog should now work) diff -r 127e6ae089f8 -r fb096ca4b296 core/loggingmanager.lua --- a/core/loggingmanager.lua Sun May 03 01:10:49 2009 +0100 +++ b/core/loggingmanager.lua Sun May 03 17:13:43 2009 +0100 @@ -86,6 +86,9 @@ 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