| 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 |
System.Wlog.LoggerConfig
Description
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.
Constructors
| LoggerConfig | |
Fields
| |
Instances
data LoggerTree Source #
Stores configuration for hierarchical loggers.
Constructors
| LoggerTree | |
Fields
| |
Instances
data RotationParameters Source #
Parameters for logging rotation.
Constructors
| RotationParameters | |
Fields
| |