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

feat: structured logs with uber/zap #865

Closed
wants to merge 1 commit into from

Conversation

iwpnd
Copy link
Member

@iwpnd iwpnd commented Jun 14, 2022

Re-opening this as discussed.

As discussed in #831 I added the option to use structured logs with uber/zap while falling back to the currently implemented default if --logger is not specifically used. Log levels conform to the current implementation with the exception of log level TRACE that is not supported by zap.
I use Debug as a fall back here.

As discussed in go-spatial#831 I added the option to use structured logs with uber/zap
while falling back to the currently implemented default if --logger
is not specifically used. Log levels conform to the current implementation
with the exception of log level TRACE that is not supported by zap.
I use Debug as a fall back here.
@iwpnd iwpnd requested review from gdey and ARolek as code owners June 14, 2022 20:18
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2767d7d27-PR-865

  • 7 of 70 (10.0%) changed or added relevant lines in 3 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 45.273%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/log/log.go 5 10 50.0%
cmd/tegola/cmd/root.go 2 18 11.11%
internal/log/zap.go 0 42 0.0%
Files with Coverage Reduction New Missed Lines %
internal/log/log.go 2 64.75%
Totals Coverage Status
Change from base Build 6387c6785: -0.2%
Covered Lines: 5593
Relevant Lines: 12354

💛 - Coveralls

Copy link
Member

@gdey gdey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gdey gdey closed this Jun 15, 2022
@gdey
Copy link
Member

gdey commented Jun 15, 2022

Merged in with a rebase onto master

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