JuliaLogging / MiniLoggers.jl

Julia logger with customizable logging string
MIT License
13 stars 2 forks source link

Error stream separated from ordinary stream #3

Closed Arkoniak closed 3 years ago

Arkoniak commented 3 years ago

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.