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

Epic logging #1186

Merged
merged 32 commits into from May 27, 2022
Merged

Epic logging #1186

merged 32 commits into from May 27, 2022

Conversation

cristianciutea
Copy link
Contributor

No description provided.

rogercoll and others added 28 commits March 16, 2022 14:36
* refactor: remove Debug config option

* feat: check if Debug is enabled for big payloads
* feat: add logrus.Fields to feature trace output

* feat: remove logrus.Fields param from feature trace
* Combine multiple debug messages about devices

* Move NFS error from debug to warn
* feat: add "Sampler" feature trace

* refactor: use TraceSamplerStructureDetails for sampler traces
* added logging on discovery

* fixed tests
* add integration_name field to executor logger

* renaming configuration option
* feat: replace Fields by log.Entry in tracer

* consider when fields is nil
* feat: add WithTrace fields

The fields added with that method will only be displayed when
the Trace level is enabled

* refactor: move json logged payloads to trace fields

* feat: remove unused helper function and apply suggestion
* refactor: move feature traces usages to log.Trace

* refactor: remove feature flags package

* refactor: remove FeatureFlags configuration option
* feat: add LogConfig structure for logging options

* fix: check logfile definition for windows

* feat: remove wrong documentation line

* feat: add smart limit option

* feat: apply typos suggestions
* feat: add logging filter configuration option

Adds a new configuration option for logging to filter by fields. It
also includes a logrus.Formatter implementation that performs this filtering.

* feat: populate log config option

* feat: use config.Log object to configure formatter
* add context for heartbeat logs

* Heartbeat msg as warning. Refactor naming

Co-authored-by: Ruben Ruiz de Gauna <rubenruizdegauna@gmail.com>
* docs: add log configuration option

* docs: document with log differences
* feat: add include and exclude logging filters

* added include/exclude log filtering options

* fixed unit test

* update code docs

* fixed unsupported logging config

* improved logging filtering

* added more test

* fixed failing tests

* improve log filtering tests

* fix databind

* revert

Co-authored-by: Roger Coll <rogercoll@protonmail.com>
@rubenruizdegauna rubenruizdegauna merged commit 54ef868 into master May 27, 2022
@rubenruizdegauna rubenruizdegauna deleted the epic_logging branch May 27, 2022 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants