flow-cli icon indicating copy to clipboard operation
flow-cli copied to clipboard

Switch Default Logging Library to slog with Logger Abstraction

Open chasefleming opened this issue 1 year ago • 1 comments

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.

chasefleming avatar May 03 '24 18:05 chasefleming

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

bjartek avatar May 13 '24 11:05 bjartek