Timber v1.0.5 Timber.Events.ExceptionEvent

The ExceptionEvent is used to track exceptions.

Timber can automatically keep track of errors reported by the VM by hooking into the SASL reporting system to collect exception information, so it should be unnecessary to track exceptions manually. See Timber.Integrations.ErrorLogger for more details.

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 :: %{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(error, stacktrace \\ [])
new(atom | Exception.t, [stacktrace_entry] | []) :: t

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.