Class: Insights::Loggers::LoggingService

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

Defined Under Namespace

Classes: Formatter

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ LoggingService

Returns a new instance of LoggingService.



4
5
6
7
8
# File 'lib/insights/loggers/logging_service.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/logging_service.rb', line 10

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