wai-extra-1.1.0.1: Provides some basic WAI handlers and middleware.

Safe HaskellSafe-Infered

Network.Wai.Middleware.RequestLogger

Contents

Synopsis

Documentation

logStdout :: MiddlewareSource

Production request logger middleware. Implemented on top of logCallback, but prints to stdout

logCallbackSource

Arguments

:: (ByteString -> IO ())

A function that logs the ByteString log message.

-> Middleware 

Prints a message using the given callback function for each request. Designed for fast production use at the expense of convenience. In particular, no POST parameter information is currently given

This is lower-level - use logStdout unless you need this greater control

logStdoutDev :: MiddlewareSource

Development request logger middleware. Implemented on top of logCallbackDev, but prints to stdout

Flushes stdout on each request, which would be inefficient in production use. Use logStdout in production.

logCallbackDevSource

Arguments

:: (ByteString -> IO ())

A function that logs the ByteString log message.

-> Middleware 

Deprecated