Skip to content

Conversation

@killercup
Copy link
Contributor

This makes the example print this:

TRACE: 2017-12-07T13:44:04Z: default: some trace log
DEBUG: 2017-12-07T13:44:04Z: default: some debug log
 INFO: 2017-12-07T13:44:04Z: default: some information log
 WARN: 2017-12-07T13:44:04Z: default: some warning log
ERROR: 2017-12-07T13:44:04Z: default: some error log

This makes the example print this:

```
TRACE: 2017-12-07T13:44:04Z: default: some trace log
DEBUG: 2017-12-07T13:44:04Z: default: some debug log
 INFO: 2017-12-07T13:44:04Z: default: some information log
 WARN: 2017-12-07T13:44:04Z: default: some warning log
ERROR: 2017-12-07T13:44:04Z: default: some error log
```
@euclio
Copy link

euclio commented Dec 7, 2017

I personally prefer the padding on the right side. That's what pretty-env-logger does.

@KodrAus
Copy link
Collaborator

KodrAus commented Dec 7, 2017

Thanks @killercup! I think aligning the level to the colon is totally fine. I personally agree with @euclio but can't think of a reason why it would be universally better to align the other way.

@KodrAus KodrAus merged commit 9fc2d6c into rust-cli:master Dec 7, 2017
epage added a commit to epage/env_logger that referenced this pull request Jan 27, 2026
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.

3 participants