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

vdk-core: add new configuration log_level_module #1167

Merged
merged 5 commits into from
Sep 12, 2022

Conversation

antoniivanov
Copy link
Collaborator

To enable users to override logs per module, temporarily (e.g for
debugging or prototyping reasons to increase verbosity of certian
module).

The feature works similar to how spring level is specified
(-Dlogging.level.com.baeldung=TRACE)

Configruation is:
'log_level_module="my.module=INFO,my.second.module=debug"'

Testing Done: unit tests

Signed-off-by: Antoni Ivanov aivanov@vmware.com

Copy link
Contributor

@gageorgiev gageorgiev left a comment

Choose a reason for hiding this comment

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

small formatting details; one error in an exception message; lgtm otherwise

@antoniivanov antoniivanov enabled auto-merge (squash) September 6, 2022 17:44
antoniivanov and others added 5 commits September 12, 2022 14:19
To enable users to override logs per module, temporarily (e.g for
debugging or prototyping reasons to increase verbosity of certian
module).

The feature works similar to how spring level is specified
(-Dlogging.level.com.baeldung=TRACE)

Configruation is:
'log_level_module="my.module=INFO,my.second.module=debug"'

Testing Done: unit tests

Signed-off-by: Antoni Ivanov <aivanov@vmware.com>
…config.py

Co-authored-by: Gabriel Georgiev <45939426+gageorgiev@users.noreply.github.com>
…config.py

Co-authored-by: Gabriel Georgiev <45939426+gageorgiev@users.noreply.github.com>
…config.py

Co-authored-by: Gabriel Georgiev <45939426+gageorgiev@users.noreply.github.com>
Signed-off-by: Antoni Ivanov <aivanov@vmware.com>
@antoniivanov antoniivanov enabled auto-merge (squash) September 12, 2022 11:49
@antoniivanov antoniivanov merged commit 6ac141f into main Sep 12, 2022
@antoniivanov antoniivanov deleted the person/aivanov/vdk-core-log branch September 12, 2022 11:50
antoniivanov added a commit that referenced this pull request Sep 12, 2022
* vdk-core: add new configuration log_level_module

To enable users to override logs per module, temporarily (e.g for
debugging or prototyping reasons to increase verbosity of certian
module).

The feature works similar to how spring level is specified
(-Dlogging.level.com.baeldung=TRACE)

Configruation is:
'log_level_module="my.module=INFO,my.second.module=debug"'

Testing Done: unit tests

Signed-off-by: Antoni Ivanov <aivanov@vmware.com>

vdk-core: extend classification error test

There are a few more test scenarios that are not covered but are pretty
common and so we are adding them now.

Testing Done: functional tests.

Signed-off-by: Antoni Ivanov <aivanov@vmware.com>

vdk-core: fix imports

Signed-off-by: Antoni Ivanov <aivanov@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants