Skip to content

Conversation

@thomas-consulting
Copy link

Align the messages between log messages with different length level text. Added an extra format $levelpad, which is a space if the level is "warn" or "info".

So, basically

12:34:56.123 [info] a message from the logger
12:34:56.123 [error] a message from the logger
12:34:56.123 [debug] a message from the logger
12:34:56.123 [warn] a message from the logger

becomes

12:34:56.123 [info]  a message from the logger
12:34:56.123 [error] a message from the logger
12:34:56.123 [debug] a message from the logger
12:34:56.123 [warn]  a message from the logger

@josevalim
Copy link
Member

I would like to avoid this for now because my first reaction was to pad the levels to the right and honestly it is easier to just use a custom formatter so you can do whatever you want. :)

@josevalim josevalim closed this Jul 31, 2014
@thomas-consulting
Copy link
Author

I think that's a shame. We've done a lot of work to make the output look
more readable. This is a really small thing that makes a big difference
when you scan logs (which I've been doing all day)
On Jul 31, 2014 2:05 AM, "José Valim" notifications@github.com wrote:

I would like to avoid this for now because my first reaction was to pad
the levels to the right and honestly it is easier to just use a custom
formatter so you can do whatever you want. :)


Reply to this email directly or view it on GitHub
#2610 (comment).

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants