Safe Haskell | None |
---|---|
Language | Haskell98 |
- logStdout :: Middleware
- logStdoutDev :: Middleware
- mkRequestLogger :: RequestLoggerSettings -> IO Middleware
- data RequestLoggerSettings
- outputFormat :: RequestLoggerSettings -> OutputFormat
- autoFlush :: RequestLoggerSettings -> Bool
- destination :: RequestLoggerSettings -> Destination
- data OutputFormat
- type OutputFormatter = ZonedDate -> Request -> Status -> Maybe Integer -> LogStr
- data Destination
- type Callback = LogStr -> IO ()
- data IPAddrSource :: *
Basic stdout logging
logStdout :: Middleware Source
Production request logger middleware.
Implemented on top of "logCallback", but prints to stdout
logStdoutDev :: Middleware Source
Create more versions
mkRequestLogger :: RequestLoggerSettings -> IO Middleware Source
data RequestLoggerSettings Source
Default RequestLoggerSettings |
outputFormat :: RequestLoggerSettings -> OutputFormat Source
Default value: Detailed
True
.
autoFlush :: RequestLoggerSettings -> Bool Source
Only applies when using the Handle
constructor for destination
.
Default value: True
.
destination :: RequestLoggerSettings -> Destination Source
Default: Handle
stdout
.
data OutputFormat Source
type OutputFormatter = ZonedDate -> Request -> Status -> Maybe Integer -> LogStr Source
data IPAddrSource :: *