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

Enable FingersCrossedHandler logging handler to easier analyze errors #8698

Closed
tsteur opened this issue Sep 2, 2015 · 0 comments · Fixed by #13923
Closed

Enable FingersCrossedHandler logging handler to easier analyze errors #8698

tsteur opened this issue Sep 2, 2015 · 0 comments · Fixed by #13923
Assignees
Labels
answered For when a question was asked and we referred to forum or answered it. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.

Comments

@tsteur
Copy link
Member

tsteur commented Sep 2, 2015

From https://github.com/Seldaek/monolog/blob/master/doc/02-handlers-formatters-processors.md#wrappers--special-handlers:

FingersCrossedHandler: A very interesting wrapper. It takes a logger as parameter and will accumulate log records of all levels until a record exceeds the defined severity level. At which point it delivers all records, including those of lower severity, to the handler it wraps. This means that until an error actually happens you will not see anything in your logs, but when it happens you will have the full information, including debug and info records. This provides you with all the information you need, but only when you need it.

This will be very helpful to actually debug issues and to understand what happened as often an error message in a log standalone doesn't help much. It should be easy to do by just adding it to the configuration. In the future we might also want to add more log entries with debug or trace level (actually not sure if they support trace level).

refs #8616

@tsteur tsteur added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. labels Sep 2, 2015
@mattab mattab added this to the Mid term milestone Nov 26, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
@diosmosis diosmosis self-assigned this Dec 29, 2018
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Projects
None yet
3 participants