View Source CozyLogger.Formats (cozy_logger v2.0.1)

Provides format functions for logger.

Usage

# configure the default formatter
config :logger, :default_formatter,
  format: {CozyLogger.Formats, :json},
  truncate: :infinity,
  utc_log: true,
  metadata: :all,
  colors: [enabled: false]

Summary

Functions

Link to this function

json(level, message, timestamp, metadata)

View Source

See CozyLogger.Formats.JSON.format/4.