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

Network.Wai.Middleware.RequestLogger

Synopsis

Documentation

logStdout :: Middleware

like logHandle, but prints to stdout

logHandle :: (ByteString -> IO ()) -> 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 For something with more useful output, use Network.Wai.Middleware.Debug

logStdoutDev :: Middleware

like logHandleDev, but prints to stdout

logHandleDev :: (ByteString -> IO ()) -> Middleware

Prints a message using the given callback function for each request. This is not for serious production use- it is inefficient. It immediately consumes a POST body and fills it back in and is otherwise inefficient For production use use module Network.Wai.Middleware.RequestLogger

logStdoutDevLT :: Middleware

Inefficient, but convenient Development load logger middleware Prints a message to stderr for each request using logHandleDevLT

logHandleDevLT :: (Text -> IO ()) -> Middleware

logHandleDev, but expects Lazy Text instead of a ByteString