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

Consider changing the MaxWidth in DefaultStyles from 4 to 5 #164

Open
FollowTheProcess opened this issue Mar 23, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@FollowTheProcess
Copy link

FollowTheProcess commented Mar 23, 2025

Is your feature request related to a problem? Please describe.
I wouldn't say a problem, just a minor gripe I have to workaround by setting my own style :)

The logger that log.New creates imposes a maximum width on the level string of 4 which means ERROR and DEBUG get cut off to ERRO and DEBU which I think looks a bit odd?

Personally I tend to define a new Style that is an exact copy of the default styles (defined here) with MaxWidth changed from 4 to 5.

Describe the solution you'd like
I'd like for DefaultStyles to return styles with a max width of 5

Describe alternatives you've considered
Continue my workaround which is fine I guess, just a lot of code for a single change. The rest of the default styles is perfect as is!

Additional context
I'm very happy to do the PR if this change is desired 👍🏻

@FollowTheProcess FollowTheProcess added the enhancement New feature or request label Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant