Class: Insights::Loggers::StdErrorLogger
- Inherits:
-
Container
- Object
- ManageIQ::Loggers::Container
- Container
- Insights::Loggers::StdErrorLogger
- Defined in:
- lib/insights/loggers/std_error_logger.rb
Defined Under Namespace
Classes: Formatter
Instance Method Summary collapse
- #app_name_for_formatter(app_name) ⇒ Object
-
#initialize(*args) ⇒ StdErrorLogger
constructor
A new instance of StdErrorLogger.
Methods inherited from Container
Constructor Details
#initialize(*args) ⇒ StdErrorLogger
Returns a new instance of StdErrorLogger.
4 5 6 7 8 9 |
# File 'lib/insights/loggers/std_error_logger.rb', line 4 def initialize(*args) super self.reopen(STDERR) self.formatter = Formatter.new self.level = INFO end |
Instance Method Details
#app_name_for_formatter(app_name) ⇒ Object
11 12 13 |
# File 'lib/insights/loggers/std_error_logger.rb', line 11 def app_name_for_formatter(app_name) self.formatter.logger_app_name = app_name end |