Timber v3.0.0-alpha.2 Timber.Contexts.UserContext View Source

The User context tracks the currently authenticated user and allows you to tail indibidual user in the Timber console.

You will want to add this context at the time you authenticate the user:

%Timber.Contexts.UserContext{id: "my_user_id", name: "John Doe", email: "john@doe.com"}
|> Timber.add_context()

Link to this section Summary

Link to this section Types

Link to this type m() View Source
m() :: %{id: String.t(), name: String.t(), email: String.t()}
Link to this type t() View Source
t() :: %Timber.Contexts.UserContext{
  email: String.t(),
  id: String.t(),
  name: String.t()
}