wai-logger-0.3.0: A logging system for WAI

Safe HaskellNone

Network.Wai.Logger.Format

Contents

Synopsis

Documentation

data IPAddrSource

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.

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

Apache style log format.

Builder

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

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