Safe Haskell | None |
---|
- data RotatingLog
- openRotatingLog :: FilePath -> Word -> IO RotatingLog
- addChunk :: RotatingLog -> ByteString -> IO ()
- close :: RotatingLog -> IO ()
- defaultMaxTotal :: Word
- dummy :: RotatingLog
Documentation
data RotatingLog Source
Represents a folder used for totating log files.
Since 0.2.1
:: FilePath | folder to contain logs |
-> Word | maximum log file size, in bytes |
-> IO RotatingLog |
Create a new RotatingLog
.
Since 0.2.1
addChunk :: RotatingLog -> ByteString -> IO ()Source
close :: RotatingLog -> IO ()Source
A RotatingLog
which performs no logging.
Since 0.2.1