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

Wrap existing zap loggers #13

Merged
merged 5 commits into from
Sep 20, 2024
Merged

Wrap existing zap loggers #13

merged 5 commits into from
Sep 20, 2024

Conversation

nhatthm
Copy link
Contributor

@nhatthm nhatthm commented Sep 20, 2024

Description

This PR introduces two key updates:

  1. Deprecation of Logger.AtomicLevel: To offer greater control over level-enabled checks, AtomicLevel is being phased out. This change might cause panics in clients relying on AtomicLevel as it becomes nil in the updated version.
  2. New Constructor for Wrapping Zap Loggers: A new constructor is added to facilitate integration with complex, pre-existing zap loggers, particularly those built using zapcore.NewTee. This enhancement aims to streamline the adoption of the new logging mechanism in diverse environments.

@nhatthm nhatthm merged commit ae8f34f into bool64:master Sep 20, 2024
7 checks passed
@nhatthm nhatthm deleted the new-constructor branch September 20, 2024 14:01
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