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

added option to change level labels #33

Closed
wants to merge 2 commits into from

Conversation

BacchusJackson
Copy link

Small change gives the caller the ability to use custom labels.
For example, if they want to see "INFO" instead of "INF"

This is done by using a string array with values corresponding
to the given label in the Options and handler structs.

Instead of using the hardcoded values "DBG,INF,WRN,ERR",
these are used as default values if the relative array item
in the option happens to be an empty string.

Small change gives the caller the ability to use custom labels.
For example, if they want to see "INFO" instead of "INF"
* Fixed the unit test want value since line number updated
* Added labels to the clone function
* Init the labels array on declaration of the h value in NewHandler
@lmittmann
Copy link
Owner

please see #32

@lmittmann lmittmann closed this Aug 26, 2023
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