Timber v1.0.13 Timber.Events.HTTPServerRequestEvent

The HTTPServerRequestEvent tracks incoming HTTP requests. This gives you structured insight into the HTTP requests coming into your app.

Timber can automatically track incoming HTTP requests if you use a Plug based framework. See Timber.Integrations.ContextPlug and Timber.Integerations.EventPlug. Also, the README.md outlines how to set these up.

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

headers()
headers() :: %{content_type: String.t | nil, remote_addr: String.t | nil, referrer: String.t | nil, request_id: String.t | nil, user_agent: String.t | nil}
t()
t() :: %Timber.Events.HTTPServerRequestEvent{headers: headers | nil, host: String.t, method: String.t, path: String.t, port: pos_integer | nil, query_string: String.t | nil, scheme: String.t}

Functions

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

Message to be used when logging.

new(opts)
new(Keyword.t) :: 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.