onflow / flow-cli

The Flow CLI is a command-line interface that provides useful utilities for building Flow applications
https://onflow.org
Apache License 2.0
206 stars 66 forks source link

Switch Default Logging Library to slog with Logger Abstraction #1567

Open chasefleming opened 4 months ago

chasefleming commented 4 months ago

Switch the default logging library to slog. Additionally, abstract the logger logic to seamlessly support other logging libraries like zerolog.

Steps

  1. Integration: Incorporate slog as the default logging library.
  2. Abstraction Layer: Implement a logger abstraction for compatibility with different logging libraries.
  3. Adapters: Develop adapters for specific logging libraries (e.g., zerolog) to conform to the common interface.
  4. Testing: Ensure the logger abstraction and adapters function correctly with various logging libraries.
  5. Documentation: Update project documentation to reflect the changes and guide users on configuring/logging library options.
bjartek commented 4 months ago

This might be handy https://github.com/samber/slog-zerolog