onkel-dirtus / logger_file_backend

MIT License
307 stars 128 forks source link

Metadata exclusion filter #51

Closed tinenbruno closed 2 years ago

tinenbruno commented 6 years ago

This PR aims to add a metadata exclusion filter, in addition to the inclusion filter existent today.

Use case

You want your worker application to log on a separated file, so you can better filter it in your logging service (e.g. papertrail). Instead of doing a logger with an inclusion filter with the worker and another one with all the other apps, you just need to exclude the worker application from the other app.

Usage

config :logger, :ui,
  path: "/path/to/ui.log",
  level: :info,
  metadata_exclusion_filter: [application: :ui]
JayDadhania commented 4 years ago

Any updates on this?

fireproofsocks commented 3 years ago

Unless I am misunderstanding, this more or less duplicates functionality in PR #66

fireproofsocks commented 2 years ago

I'm still getting familiar with the repo but I now have permissions to publish, so I can help things move. If it's possible it'd be great if you could resolve the conflicts. Thanks for your input!

fireproofsocks commented 2 years ago

Closing this in favor of PR #80