Comparison

core/loggingmanager.lua @ 1613:ebf0813a81f6

core.loggingmanager: Enable timestamps by default for file log sinks
author Matthew Wild <mwild1@gmail.com>
date Tue, 28 Jul 2009 15:03:42 +0100
parent 1522:569d58d21612
child 1892:adc0c80413ee
comparison
equal deleted inserted replaced
1612:0413aaf9edae 1613:ebf0813a81f6
220 end 220 end
221 end); 221 end);
222 222
223 local timestamps = config.timestamps; 223 local timestamps = config.timestamps;
224 224
225 if timestamps == true then 225 if timestamps == nil or timestamps == true then
226 timestamps = default_timestamp; -- Default format 226 timestamps = default_timestamp; -- Default format
227 end 227 end
228 228
229 return function (name, level, message, ...) 229 return function (name, level, message, ...)
230 if timestamps then 230 if timestamps then