Plug.AccessLog v0.15.0 Plug.AccessLog.Formatter behaviour View Source

Formatting pipeline.

Link to this section Summary

Callbacks

Formats a log message.

Link to this section Functions

Link to this function

format(format, conn, formatters)

View Source

Specs

format(nil | atom() | String.t(), Plug.Conn.t(), nil | [module()]) :: String.t()

Formats a log message.

The :default format is :clf.

Link to this section Callbacks

Specs

format(format :: String.t(), conn :: Plug.Conn.t()) :: String.t()

Formats a log message.