Instead of a single stream, two should be used: for ordinary messages and errors. By default error stream should be stderr, but it should be set through ioerr argument.
Additionally, ioerr_level should be set, so err stream is used only when log level exceeds this threshold.
This would make logs look more like a regular bash log stream, with the ease of separation error and regular logs and storing them in separate files.
Note: LoggingExtras.jl allows to solve the same problem with the help of multiplexer and filters, but usually it is too heavy weight solution, it's just easier to have this feature as an additional argument.
Instead of a single stream, two should be used: for ordinary messages and errors. By default error stream should be
stderr
, but it should be set throughioerr
argument.Additionally,
ioerr_level
should be set, soerr
stream is used only when log level exceeds this threshold.This would make logs look more like a regular bash log stream, with the ease of separation error and regular logs and storing them in separate files.
Note: LoggingExtras.jl allows to solve the same problem with the help of multiplexer and filters, but usually it is too heavy weight solution, it's just easier to have this feature as an additional argument.