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

Change loglevel to be of equal length #10

Closed
Sherex opened this issue Aug 3, 2020 · 0 comments · Fixed by #13
Closed

Change loglevel to be of equal length #10

Sherex opened this issue Aug 3, 2020 · 0 comments · Fixed by #13
Assignees
Labels
enhancement New feature or request

Comments

@Sherex
Copy link
Contributor

Sherex commented Aug 3, 2020

Add padding to loglevel depending on it's length, for cleaner logs.

Example

Current:

[ 3/8/2020 11:41:30 ] < INFO > @vtfk/logger - 2.2.0: timescaledb-interaction - locations inserted
[ 3/8/2020 11:41:34 ] < DEBUG > @vtfk/logger - 2.2.0: timescaledb-interaction - closing connection

Changed:

[ 3/8/2020 11:41:30 ] < INFO >  @vtfk/logger - 2.2.0: timescaledb-interaction - locations inserted
[ 3/8/2020 11:41:34 ] < DEBUG > @vtfk/logger - 2.2.0: timescaledb-interaction - closing connection
@Sherex Sherex added the enhancement New feature or request label Aug 3, 2020
@Sherex Sherex self-assigned this Aug 3, 2020
@Sherex Sherex closed this as completed in #13 Aug 7, 2020
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

Successfully merging a pull request may close this issue.

1 participant