Class: Yell::Adapters::Datefile

Inherits:
File show all
Defined in:
lib/yell/adapters/datefile.rb

Overview

The Datefile adapter is similar to the File adapter. However, it rotates the file at midnight.

Constant Summary collapse

DefaultDatePattern =

The default date pattern, e.g. “19820114” (14 Jan 1982)

"%Y%m%d"

Constants inherited from Io

Io::Colors

Instance Attribute Summary collapse

Attributes inherited from Io

#colors

Attributes included from Formatter::Helpers

#format

Attributes included from Level::Helpers

#level

Method Summary

Methods inherited from Io

#colorize!

Methods inherited from Base

#close, close, #initialize, setup, write, #write

Constructor Details

This class inherits a constructor from Yell::Adapters::Base

Instance Attribute Details

#date_patternObject

Accesor to the date_pattern



41
42
43
# File 'lib/yell/adapters/datefile.rb', line 41

def date_pattern
  @date_pattern
end

#keepObject

Accessor to keep



44
45
46
# File 'lib/yell/adapters/datefile.rb', line 44

def keep
  @keep
end