View Source CozyLogger (cozy_logger v2.0.1)

Logger helpers, providing format functions of various formats and seamless integrations with other libraries.

Features

  • Formats
    • JSON
  • Integrations
    • Phoenix
    • Oban

Installation

Add :package_name to the list of dependencies in mix.exs:

def deps do
  [
    {:cozy_logger, <requirement>}
  ]
end

Usage

For more information, see the documentation.

About the design

  • The formats are only responsible for formatting, and they do not handle any vendor-specific formats.
  • The integrations process telemetry events to print logs, and provide install/0 or install/1 functions for convenient initialization.

License

Apache License 2.0