keter-2.1.6: Web application deployment manager, focusing on Haskell web frameworks. It mitigates downtime.
Safe HaskellSafe-Inferred
LanguageHaskell98

Keter.Logger

Synopsis

Documentation

data Logger Source #

Record wrapper over a fast logger (log,close) function tuple, just to make it less unwieldy and obscure. The LogType is also tracked, in case formatting depends on it.

Constructors

Logger 

Fields

createLoggerViaConfig Source #

Arguments

:: KeterConfig 
-> String

Log file name

-> IO Logger 

Create a logger based on a KeterConfig. If log rotation is enabled in the config, this will return a rotating file logger; and a stderr logger otherwise.

defaultMaxTotal :: Integer Source #

The default total file size before for a log file before it needs to be rotated

defaultBufferSize :: Int Source #

The default log message buffer size