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

Changed the verbosity function to public #52

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

khultman
Copy link

@khultman khultman commented Jan 20, 2023

Changing the verbosity() function to public allows the user to retrieve the raw i8 value of the flag calculation.

The use case:
Users that use other logging libraries, such as tracing, can now use this library to retrieve the integer value to create their own mapping without doing a redundant and lossy type conversion from Log::Filter back to i8.

Fixes #53

Copy link
Contributor

@matthiasbeyer matthiasbeyer left a comment

Choose a reason for hiding this comment

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

The change itself is fine IMO, but I'd wait for the discussion in #58 here.

Comment on lines +114 to +115
// The raw i8 value of the combined verbosity level
pub fn verbosity(&self) -> i8 {
Copy link
Member

Choose a reason for hiding this comment

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

Discussion in #53 needs resolving before we can move forward with this

Copy link
Member

Choose a reason for hiding this comment

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

(while redundant with @matthiasbeyer comment, this will help mark it as not ready for merging so we don't lose track of this)

@epage epage marked this pull request as draft July 3, 2023 14:53
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.

Direct access to the i8 value of verbosity
3 participants