Class: Yell::Adapters::Datefile
- 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
Instance Attribute Summary collapse
-
#date_pattern ⇒ Object
Accesor to the date_pattern.
-
#keep ⇒ Object
Accessor to keep.
Attributes inherited from Io
Attributes included from Formatter::Helpers
Attributes included from Level::Helpers
Method Summary
Methods inherited from Io
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_pattern ⇒ Object
Accesor to the date_pattern
41 42 43 |
# File 'lib/yell/adapters/datefile.rb', line 41 def date_pattern @date_pattern end |
#keep ⇒ Object
Accessor to keep
44 45 46 |
# File 'lib/yell/adapters/datefile.rb', line 44 def keep @keep end |