Comparison

core/loggingmanager.lua @ 5272:1e555909f23d

core.loggingmanager: Don't create file log rules from [level] = "*sink" style config
author Kim Alvefur <zash@zash.se>
date Thu, 27 Dec 2012 20:44:58 +0100
parent 5001:78a3d275715a
child 5377:898454038524
comparison
equal deleted inserted replaced
5270:20e14961f630 5272:1e555909f23d
65 if type(logging_config) == "table" then 65 if type(logging_config) == "table" then
66 66
67 for _, level in ipairs(logging_levels) do 67 for _, level in ipairs(logging_levels) do
68 if type(logging_config[level]) == "string" then 68 if type(logging_config[level]) == "string" then
69 local value = logging_config[level]; 69 local value = logging_config[level];
70 if sink_type == "file" then 70 if sink_type == "file" and not value:match("^%*") then
71 add_rule({ 71 add_rule({
72 to = sink_type; 72 to = sink_type;
73 filename = value; 73 filename = value;
74 timestamps = true; 74 timestamps = true;
75 levels = { min = level }; 75 levels = { min = level };