log4hs-0.9.0.0: A python logging style log library

Safe HaskellNone
LanguageHaskell2010

Logging.Handler.TimeRotatingFileHandler

Synopsis

Documentation

data TimeRotatingFileHandler Source #

A handler type which logs to a file and rotates the log at cerntain timed intervals.

Since: 0.7.0

Constructors

TimeRotatingFileHandler 

Fields

Instances
Eq TimeRotatingFileHandler Source # 
Instance details

Defined in Logging.Handler.TimeRotatingFileHandler

Generic TimeRotatingFileHandler Source # 
Instance details

Defined in Logging.Handler.TimeRotatingFileHandler

Associated Types

type Rep TimeRotatingFileHandler :: Type -> Type #

Handler TimeRotatingFileHandler Source # 
Instance details

Defined in Logging.Handler.TimeRotatingFileHandler

type Rep TimeRotatingFileHandler Source # 
Instance details

Defined in Logging.Handler.TimeRotatingFileHandler

data DayOfWeek Source #

A datatype indicates a day of Monday-starting week.

data RotateTime Source #

A datatype indicates when to rotate file.

Note: This handler use 1970-01-01 00:00:00 of the given timezone as the zero time, all caculations of RotateTime are based on this zero time. Let's consider Hour 5 for example, if now is 2020-01-01 03:10:00, since there are 87658 5 hours between now and zero time, the next rotating time will be 2020-01-01 07:00:00.

Constructors

Minute Int

Every n minute(s)

Hour Int

Every n hour(s)

WeekDay DayOfWeek

At zero clock of a weekday

Day Int

Every n day(s)