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

feature/add filters for the debug level logs #300

Merged
merged 12 commits into from
Aug 9, 2022

Conversation

NeJan2020
Copy link
Collaborator

@NeJan2020 NeJan2020 commented Aug 1, 2022

Description

add an option name debug_selector to filter debug_log from different components

Related Issue

#298

NewOption named debug_selector

This option can be compatible with the previous version.
If this option is empty or not SETUP, all component will print their debug log normally.

observability:
  logger:
    console_level: info # debug,info,warn,error,none
    file_level: info
    # debug_selector is used to filter debug message from different components
    # 1. This filter will not take effect when there is no element in the debug_selector list
    # 2. If the list is not empty, only the components contained in this list will print debug message
    # 3. The name of each component is defined above, such as `receiver.cgoreceiver`, `exporter.otelexporter`, only the second part of the config name needed
    # e.g debug_selector: ["cgoreceiver","otelexporter"]
    debug_selector: []

Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
@NeJan2020 NeJan2020 requested a review from dxsup August 1, 2022 01:45
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
@NeJan2020 NeJan2020 changed the title Feature/add filter to debug log feature/add filters for the debug level logs Aug 1, 2022
NeJan2020 and others added 7 commits August 1, 2022 10:28
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
…0/kindling into feature/add-filter-to-debug-log-rebase
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
@dxsup dxsup merged commit 850b960 into KindlingProject:main Aug 9, 2022
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.

2 participants