Skip to content

Improved logging #37

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

spectreob
Copy link

The main idea is to improve logging:

  1. Fix initialization: log.NewDefaultLogger creates a new logger instance, but (due to an unknown reason) the current configuration implemented to a global logrus instance.
  2. Enabled tracing (via report caller) for logs in JSON format (additional parameters file&func will be added). In text logs these params will be empty (to not make extra mess).
  3. Changed logs in text format: enabled colors by default (without needness to use tty), instead of "time in seconds" will be used "2006-01-02 15:04:05" time format.

…caller) for JSON format 3) changed text format
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