Skip to content

Fix/negative logging categories - #519

Merged
lo-simon merged 2 commits into
sony:masterfrom
garethsb:fix/negative-logging-categories
Aug 12, 2026
Merged

Fix/negative logging categories#519
lo-simon merged 2 commits into
sony:masterfrom
garethsb:fix/negative-logging-categories

Conversation

@garethsb

@garethsb garethsb commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Replaces #508, to resolve #338. Based on @ZayanKhan-12 original PR, just adding my requested tweaks.

ZayanKhan-12 and others added 2 commits August 12, 2026 13:42
Categories prefixed with '!' in the logging_categories setting specify
messages that should not be written to the error log. A negative match
takes precedence over any positive match, and when only negative
categories are specified, all other messages remain pertinent, so e.g.
["!access"] logs everything except access messages.

Behaviour is unchanged when logging_categories is omitted (everything
is logged), empty (nothing is logged), or contains only positive
categories.

Closes sony#338

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Complete the negative-prefix rule for uncategorized messages, align
example config comments with settings.h, and add coverage for same-
category positive/negative conflict.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>

@lo-simon lo-simon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lo-simon
lo-simon merged commit a19e364 into sony:master Aug 12, 2026
10 checks passed
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.

[Enhancement] Negative logging categories

3 participants