View Source CozyLogger (cozy_logger v0.1.0)

Logging helpers, providing various formatters and seamless integrations with other libraries.

features

Features

  • Formatters
    • [x] JSON Formatter
    • ...
  • Integrations
    • [x] Phoenix
    • [ ] Ecto
    • ...

installation

Installation

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

def deps do
  [
    {:cozy_logger, "~> <version>"}
  ]
end

usage

Usage

For more information, see the documentation.

about-the-design

About the design

  • The formatters are only responsible for formatting, 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

License

Apache License 2.0