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

Use ISO8601 timestamp format for zap log messages #843

Merged
merged 2 commits into from
Oct 12, 2021

Commits on Oct 11, 2021

  1. Add flags to configure logging

    Adds the zap flagset to configure the logging. This includes the
    following flags:
    zap-devel: Enable zap development mode (changes defaults to console
    encoder, debug log level, disables sampling and stacktrace from warning
    level).
    zap-encoder: Zap log encoding (json or console).
    zap-level: Zap log level (one of debug, info, error or any uint value).
    zap-stacktrace-level: Set the minimum log level that triggers stacktrace
    generation.
    
    Deprecates the --v flag in favor of --zap-debug.
    
    Signed-off-by: Christoph Stäbler <cstabler@redhat.com>
    creydr committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    d486bda View commit details
    Browse the repository at this point in the history
  2. Use ISO8601 format for time encoding in logging

    Uses the ISO8601 format for encoding of log timestamps for a more
    human-readable output.
    
    Signed-off-by: Christoph Stäbler <cstabler@redhat.com>
    creydr committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    7fb2914 View commit details
    Browse the repository at this point in the history