Timber Exceptions v2.1.0 Timber.Exceptions.Translator View Source
This module implements a Logger translator to take advantage of the richer metadata available from Logger in OTP 21 and Elixir 1.7+.
Including the translator allows for crash reasons and stacktraces to be included as structured metadata within Timber.
The translator depends on using Elixir's internal Logger.Translator, and is not compatible with other translators as a Logger event can only be translated once.
To install, add the translator in your application's start function:
# ...
:ok = Logger.add_translator({Timber.Exceptions.Translator, :translate})
opts = [strategy: :one_for_one, name: MyApp.Supervisor]
Supervisor.start_link(children, opts)
Link to this section Summary
Link to this section Functions
Link to this function
transform_metadata(metadata) View Source
Link to this function