Timber v2.3.4 Timber.Events.ErrorEvent View Source

The ErrorEvent is used to track errors and exceptions.

Timber automatically tracks and structures errors and exceptions in your application. Giving you detailed stack traces, context, and error data.

Link to this section Summary

Functions

Message to be used when logging

Builds a new struct taking care to normalize data into a valid state. This should be used, where possible, instead of creating the struct directly

Link to this section Types

Link to this type backtrace_entry() View Source
backtrace_entry() :: %{app_name: String.t | nil, function: String.t, file: String.t | nil, line: non_neg_integer | nil}
Link to this type stacktrace_entry() View Source
stacktrace_entry() :: {module, atom, arity, [file: IO.chardata, line: non_neg_integer] | []}
Link to this type t() View Source
t() :: %Timber.Events.ErrorEvent{backtrace: [backtrace_entry] | [], message: String.t, name: String.t}

Link to this section Functions

Link to this function message(error_event) View Source
message(t) :: IO.chardata

Message to be used when logging.

Link to this function new(log_message) View Source
new(String.t) :: {:ok, t} | {:error, atom}

Builds a new struct taking care to normalize data into a valid state. This should be used, where possible, instead of creating the struct directly.