GSMLG.Logger.Formatter behaviour (gsmlg_logger v0.1.0)

Summary

Types

@type opts() :: [
  {:encoder_opts, [Jason.encode_opt()]}
  | {:metadata, :all | {:all_except, [atom()]} | [atom()]}
  | {:redactors, [{module(), term()}]}
  | {atom(), term()}
]

Callbacks

Link to this callback

format(event, opts)

@callback format(event :: :logger.log_event(), opts :: opts()) :: iodata()