flow-cli
flow-cli copied to clipboard
Switch Default Logging Library to slog with Logger Abstraction
Switch the default logging library to slog. Additionally, abstract the logger logic to seamlessly support other logging libraries like zerolog.
Steps
- Integration: Incorporate
slogas the default logging library. - Abstraction Layer: Implement a logger abstraction for compatibility with different logging libraries.
- Adapters: Develop adapters for specific logging libraries (e.g.,
zerolog) to conform to the common interface. - Testing: Ensure the logger abstraction and adapters function correctly with various logging libraries.
- Documentation: Update project documentation to reflect the changes and guide users on configuring/logging library options.
This might be handy https://github.com/samber/slog-zerolog