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

Improve Config Handling #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Saartank
Copy link
Collaborator

This PR improves the way we pass configuration to initialize new loggers. It follows the same model as used in Viper. With this PR, we maintain a global logger that can be configured using the LogInit function. However, there is also the flexibility of creating a new logger without modifying the global logger using the NewLogger function.

For most cases, applications would simply need to call LogInit and use the global logger variable for all logging. In cases where a change in behavior is required, the application can create a new logger altogether without affecting the global logger.

This PR also adds tests and introduces a GitHub workflow to run tests on push and pull requests for quick feedback.

@Saartank Saartank requested a review from mwestphall January 22, 2025 20:43
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.

1 participant