Closed de-vri-es closed 5 months ago
The Filter
type is already exposed though. It's true that you could pull in less dependencies if you only want the Filter
type.
So.. if I make a PR to split Filter
to a separate crate (env_logger_filter
, env_log_filter
, env_filter
, bikeshed...) and re-export it from env_logger
, would that be a good way forward?
And then would you be inclined to accept this utility to wrap an existing logger?
Pushed a commit to split the filter
module off to a separate crate. What do you think?
Or do you think it would be better to move it to a separate git repo?
I've incorporated parts of this into #299 and #300
This can be used by end-users that want to combine the filtering capabilities of
env_logger
with a differentLog
implementation.In my case, I want to combine the filtering of
env_logger
withsystemd-journal-logger
. I could just do it myself where I need it, but this feels like something that could be useful to provide fromenv_logger
already.