Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

add support to change the prefix format - #5

Open
dubyte wants to merge 1 commit into
afiskon:masterfrom
dubyte:give_option_to_format_prefix
Open

add support to change the prefix format#5
dubyte wants to merge 1 commit into
afiskon:masterfrom
dubyte:give_option_to_format_prefix

Conversation

@dubyte

@dubyte dubyte commented Mar 22, 2022

Copy link
Copy Markdown

The prefix is hardcoded as "Debug: ", "Warn: " etc, with this PR that format is the same
but you can pass a prefixFormat wheren you can change for example how is printed.

default format: "%s: "
imagine an example: "level=%s "

so the line would looks like: " level=Debug "

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant