Open PhilippSoehnlein opened 4 years ago
Hi, Philipp, this seems like a good thing to add. Would you be up for creating a PR? I think the best way to implement this would be to translate the format
into a callback, just to keep the internals simpler.
Log::Dispatch::Config
has a niceformat
option which I would like to see inLog::Dispatch
directly.In my case I'd like to have a screen logger that prepends log messages with the time and the log level. I know this can be done with adding a callback, but since
Log::Dispatch::Config
provides such a convenient option, it would be nice when something like it would be directly available in all Log::Dispatch outputs.