Timber v2.0.0-rc5 Timber.Events.ControllerCallEvent

The ControllerCallEvent represents a controller being called during the HTTP request cycle.

Summary

Functions

Message to be used when logging

Builds a new struct taking care to

Converts the struct into a map that the Timber API expects. This is the data that is sent to the Timber API

Types

t()
t() :: %Timber.Events.ControllerCallEvent{action: String.t, controller: String.t, params_json: String.t | nil, pipelines: term}

Functions

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

Message to be used when logging.

new(opts)
new(Keyword.t) :: t

Builds a new struct taking care to:

  • Convert :params to :params_json that satifies the Timber API requirements
to_api_map(controller_call_event)
to_api_map(t) :: map

Converts the struct into a map that the Timber API expects. This is the data that is sent to the Timber API.