Comparison

core/loggingmanager.lua @ 8355:45383e071ded

loggingmanager: Make timestamps enabled by default in file sink (fixes #1004)
author Kim Alvefur <zash@zash.se>
date Thu, 26 Oct 2017 22:30:52 +0200
parent 8229:bf6f80f2d971
child 8555:4f0f5b49bb03
comparison
equal deleted inserted replaced
8354:b41947a0fc0c 8355:45383e071ded
176 end 176 end
177 local write = logfile.write; 177 local write = logfile.write;
178 178
179 local timestamps = sink_config.timestamps; 179 local timestamps = sink_config.timestamps;
180 180
181 if timestamps == true then 181 if timestamps == true or timestamps == nil then
182 timestamps = default_timestamp; -- Default format 182 timestamps = default_timestamp; -- Default format
183 elseif timestamps then 183 elseif timestamps then
184 timestamps = timestamps .. " "; 184 timestamps = timestamps .. " ";
185 end 185 end
186 186