Class: Lotus::Logger::Formatter Private
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Lotus::Logger::Formatter
- Defined in:
- lib/lotus/logger.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Lotus::Logger default formatter
Instance Attribute Summary collapse
- #application_name ⇒ Object writeonly private
Instance Method Summary collapse
Instance Attribute Details
#application_name=(value) ⇒ Object (writeonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
80 81 82 |
# File 'lib/lotus/logger.rb', line 80 def application_name=(value) @application_name = value end |
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
86 87 88 89 |
# File 'lib/lotus/logger.rb', line 86 def call(severity, time, progname, msg) progname = "[#{@application_name}] #{progname}" super(severity, time.utc, progname, msg) end |