Class: Insights::Loggers::StdErrorLogger

Inherits:
ManageIQ::Loggers::Container
  • Object
show all
Defined in:
lib/insights/loggers/std_error_logger.rb

Defined Under Namespace

Classes: Formatter

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ StdErrorLogger

Returns a new instance of StdErrorLogger.



4
5
6
7
8
# File 'lib/insights/loggers/std_error_logger.rb', line 4

def initialize(*args)
  super
  self.reopen(STDERR)
  self.formatter = Formatter.new
end

Instance Method Details

#app_name_for_formatter(app_name) ⇒ Object



10
11
12
# File 'lib/insights/loggers/std_error_logger.rb', line 10

def app_name_for_formatter(app_name)
  self.formatter.logger_app_name = app_name
end