Class: CemWinSpec::Logging::Formatter::FileFormatter
- Inherits:
-
Object
- Object
- CemWinSpec::Logging::Formatter::FileFormatter
- Defined in:
- lib/cem_win_spec/logging/formatter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#log_format ⇒ Object
readonly
Returns the value of attribute log_format.
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize ⇒ FileFormatter
constructor
A new instance of FileFormatter.
Constructor Details
#initialize ⇒ FileFormatter
Returns a new instance of FileFormatter.
22 23 24 |
# File 'lib/cem_win_spec/logging/formatter.rb', line 22 def initialize @log_format = :file end |
Instance Attribute Details
#log_format ⇒ Object (readonly)
Returns the value of attribute log_format.
20 21 22 |
# File 'lib/cem_win_spec/logging/formatter.rb', line 20 def log_format @log_format end |
Instance Method Details
#get ⇒ Object
26 27 28 29 30 |
# File 'lib/cem_win_spec/logging/formatter.rb', line 26 def get proc do |severity, datetime, progname, msg| format(severity, datetime, progname, msg) end end |