wai-logger-0.0.1: A logging system for WAI

Network.Wai.Logger.IO

Synopsis

Documentation

data LogStr Source

A date type to contain String and ByteString.

Constructors

LS !String 
LB !ByteString 

hPutLogStr :: Handle -> [LogStr] -> IO ()Source

The hPut function directory to copy a lift of LogStr to the buffer.

hPutBuilder :: Handle -> Builder -> IO ()Source

The hPut function directory to copy Builder to the buffer. The current implementation is inefficient at this moment. initHandle must be called once beforehand if this function is used.

initHandle :: Handle -> IO ()Source

Setting a proper buffering to Handle.