Class: CemAcpt::Logging::Formatter::FileFormatter
- Inherits:
-
Object
- Object
- CemAcpt::Logging::Formatter::FileFormatter
- Defined in:
- lib/cem_acpt/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.
26 27 28 |
# File 'lib/cem_acpt/logging/formatter.rb', line 26 def initialize @log_format = :file end |
Instance Attribute Details
#log_format ⇒ Object (readonly)
Returns the value of attribute log_format.
24 25 26 |
# File 'lib/cem_acpt/logging/formatter.rb', line 24 def log_format @log_format end |
Instance Method Details
#get ⇒ Object
30 31 32 33 34 |
# File 'lib/cem_acpt/logging/formatter.rb', line 30 def get proc do |severity, datetime, progname, msg| self.format(severity, datetime, progname, msg) end end |