Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Santa should have a way to limit what's logged in santa.log #11

Open
pmarkowsky opened this issue Oct 4, 2024 · 1 comment
Open

Santa should have a way to limit what's logged in santa.log #11

pmarkowsky opened this issue Oct 4, 2024 · 1 comment
Labels
enhancement New feature or request 🪵 logging telemetry Issues / PRs that change the telemetry output

Comments

@pmarkowsky
Copy link
Contributor

It would be nice to have a filter that allows you to decide which events are / are not logged into the logs in /var/db/santa/.

I propose but am not wedded to the following:

  • Assign each event a number
  • Create a bitmask where all ones means all events
  • Check the bitmask and only log the events that are enabled in the bitmask.
  • Create a new option in the config LogFilter that by default logs all events.
  • Create a string mapping of fields to be set in the option similar to the USB options.
@pmarkowsky pmarkowsky added enhancement New feature or request telemetry Issues / PRs that change the telemetry output 🪵 logging labels Oct 4, 2024
@pmarkowsky
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🪵 logging telemetry Issues / PRs that change the telemetry output
Projects
None yet
Development

No branches or pull requests

1 participant