-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat(log): Allow to combine log.conditions to only log (app&user) #45277
Conversation
* | ||
* Defaults to an empty array. | ||
*/ | ||
'log.condition' => [ | ||
'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9', | ||
'users' => ['sample-user'], | ||
'apps' => ['files'], | ||
'matches' => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'matches' => [ | |
'and' => [ |
Or is that too nerdy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'matches' => [ | |
'allof' => [ |
maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had that at some point all ready, but my mind couldn't settle if it's allof or anyof and then I wondered if it's more understandable for people
c83e80c
to
af25b5a
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
af25b5a
to
710a69b
Compare
Summary
Improve log conditioning to allow only debug logging entries for user & app, dedicated log level for each condition and "log message contains" additionally.
Checklist