wai-logger-0.3.2: A logging system for WAI

Safe HaskellNone

Network.Wai.Logger.Format

Contents

Synopsis

Documentation

data IPAddrSource Source

Source from which the IP source address of the client is obtained.

Constructors

FromSocket

From the peer address of the HTTP connection.

FromHeader

From X-Real-IP: or X-Forwarded-For: in the HTTP header.

FromFallback

From the peer address if header is not found.

apacheFormat :: IPAddrSource -> ZonedDate -> Request -> Status -> Maybe Integer -> [LogStr]Source

Apache style log format.

Builder

apacheFormatBuilder :: IPAddrSource -> ZonedDate -> Request -> Status -> Maybe Integer -> BuilderSource

Apache style log format with Builder. This is experimental. This would replace apacheFormat someday.