Timber v1.1.11 Timber.Events.ExceptionEvent

The ExceptionEvent is used to track exceptions.

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

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

Types

backtrace_entry()
backtrace_entry() :: %{app_name: String.t | nil, function: String.t, file: String.t | nil, line: non_neg_integer | nil}
stacktrace_entry()
stacktrace_entry() :: {module, atom, arity, [file: IO.chardata, line: non_neg_integer] | []}
t()
t() :: %Timber.Events.ExceptionEvent{backtrace: [backtrace_entry] | [], message: String.t, name: String.t}

Functions

message(exception_event)
message(t) :: IO.chardata

Message to be used when logging.

new(log_message)
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.