Comparison

core/loggingmanager.lua @ 12247:dcad8940f072

core.loggingmanager: Add FIXME about supporting console logging to stderr Currently it is hard codded to be a specialized stdout logger, which should be fixed one day.
author Kim Alvefur <zash@zash.se>
date Wed, 02 Feb 2022 18:36:08 +0100
parent 11657:46fa1b939e88
child 12972:ead41e25ebc0
comparison
equal deleted inserted replaced
12246:51930f685c16 12247:dcad8940f072
225 pretty = st.pretty_print; 225 pretty = st.pretty_print;
226 end 226 end
227 227
228 local function log_to_console(sink_config) 228 local function log_to_console(sink_config)
229 -- Really if we don't want pretty colours then just use plain stdout 229 -- Really if we don't want pretty colours then just use plain stdout
230 -- FIXME refactor to allow console logging with colours on stderr
230 if not do_pretty_printing then 231 if not do_pretty_printing then
231 return log_to_stdout(sink_config); 232 return log_to_stdout(sink_config);
232 end 233 end
233 sink_config.filter = pretty; 234 sink_config.filter = pretty;
234 local logstdout = log_to_stdout(sink_config); 235 local logstdout = log_to_stdout(sink_config);