Documentation ¶
Overview ¶
Package logger defines facilities to write bot data to log files, along with code which cycles log cycles and purges log files when needed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Format defines the date layout for log file names. Format = "20060102" // PurgeTimeout defines the timeout after which the bot should // check for stale log files. PurgeTimeout = time.Hour * 24 // RefreshTimeout determines how often we should check if a new // log file should be opened. RefreshTimeout = time.Minute // Expiration defines how old a log file should be, before it // is considered stale. Expiration = time.Hour * 24 * 7 * 2 )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.