Copyright | (c) Serokell 2016 |
---|---|
License | GPL-3 (see the file LICENSE) |
Maintainer | Serokell <hi@serokell.io> |
Stability | experimental |
Portability | POSIX, GHC |
Safe Haskell | None |
Language | Haskell2010 |
Logger configuration.
- data LoggerConfig = LoggerConfig {
- lcRotation :: !(Maybe RotationParameters)
- lcTree :: !LoggerTree
- data LoggerTree = LoggerTree {
- ltSubloggers :: !LoggerMap
- ltFile :: !(Maybe FilePath)
- ltSeverity :: !(Maybe Severity)
- type LoggerMap = HashMap Text LoggerTree
- data RotationParameters = RotationParameters {
- rpLogLimit :: !Word64
- rpKeepFiles :: !Word
- isValidRotation :: RotationParameters -> Bool
Documentation
data LoggerConfig Source #
Logger configuration which keeps RotationParameters
and LoggerTree
.
data LoggerTree Source #
Stores configuration for hierarchical loggers.
LoggerTree | |
|
data RotationParameters Source #
Parameters for logging rotation.
RotationParameters | |
|