Skip to content

Switch from built-in logger to logrus#3

Open
dvallant wants to merge 4 commits into
dsouzajude:masterfrom
dvallant:logger
Open

Switch from built-in logger to logrus#3
dvallant wants to merge 4 commits into
dsouzajude:masterfrom
dvallant:logger

Conversation

@dvallant

Copy link
Copy Markdown

Hey @dsouzajude,

In this PR logging is changed from built-in golang logging to logrus. With the new environment variable LOG_LEVEL the preferred log level can be set on start up.

Further, this PR adds some minor enhancements:

  • Update build to golang 1.20
  • Compile regex for empty messages outside loop

If you prefer I could create separate PRs for them :-)

Best wishes,
Dorian

To increase the performance the regex pattern to find empty log
messages was put outside the loop.
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