Comparison

core/loggingmanager.lua @ 1101:fb096ca4b296

loggingmanager: Support for specifying a single sink with *sinkname (*syslog should now work)
author Matthew Wild <mwild1@gmail.com>
date Sun, 03 May 2009 17:13:43 +0100
parent 1080:b02290fd8a75
child 1117:360ec48ea780
comparison
equal deleted inserted replaced
1099:127e6ae089f8 1101:fb096ca4b296
84 for _, sink_config in pairs(default_file_logging) do 84 for _, sink_config in pairs(default_file_logging) do
85 sink_config.filename = logging_config; 85 sink_config.filename = logging_config;
86 add_rule(sink_config); 86 add_rule(sink_config);
87 sink_config.filename = nil; 87 sink_config.filename = nil;
88 end 88 end
89 elseif type(logging_config) == "string" and logging_config:match("^%*(.+)") == sink_type then
90 -- Log all levels (debug+) to this sink
91 add_rule({ levels = { min = "debug" }, to = sink_type });
89 end 92 end
90 end 93 end
91 94
92 95
93 96