Safe Haskell | Safe-Infered |
---|
- logStdout :: Middleware
- logCallback :: (ByteString -> IO ()) -> Middleware
- logStdoutDev :: Middleware
- logCallbackDev :: (ByteString -> IO ()) -> Middleware
- logHandle :: (ByteString -> IO ()) -> Middleware
- logHandleDev :: (ByteString -> IO ()) -> Middleware
Documentation
Production request logger middleware.
Implemented on top of logCallback, but prints to stdout
:: (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.
:: (ByteString -> IO ()) | A function that logs the ByteString log message. |
-> 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
This is lower-level - use logStdoutDev unless you need this greater control
Deprecated
logHandle :: (ByteString -> IO ()) -> MiddlewareSource
logHandleDev :: (ByteString -> IO ()) -> MiddlewareSource