onkel-dirtus / logger_file_backend

MIT License
307 stars 128 forks source link

The backend level is effectively a minimum level #82

Open dvv opened 1 year ago

dvv commented 1 year ago

Hi!

I have a case to log messages exactly of the specified level. Here https://github.com/onkel-dirtus/logger_file_backend/blob/master/lib/logger_file_backend.ex#L37 the condition allows messages of the specified level plus more serious ones. Wonder if it's feasible to have "exact" mode and how to implement it in the least invasive way.

TIA