Skip to content

Conversation

begoon
Copy link
Contributor

@begoon begoon commented Feb 22, 2024

Summary

Add skip_level_padding to ConsoleRenderer.

Details

This PR allows switching on and off the padding of the log level with blanks in ConsoleRenderer.

By default, the log level is padded with blanks to the length of the longest log level name. It may look like:

2024-03-15 11:32:29 [info     ] log message 

The skip_level_padding flag allows to output:

2024-03-15 11:33:35 [info] log message

Copy link
Owner

@hynek hynek left a comment

Choose a reason for hiding this comment

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

Thanks!

@hynek hynek enabled auto-merge (squash) March 5, 2024 09:08
@hynek hynek merged commit 0a64815 into hynek:main Mar 5, 2024
hynek added a commit that referenced this pull request Mar 5, 2024
@begoon begoon deleted the console-level-padding branch March 5, 2024 09:27
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