Class: ManageIQ::Loggers::Container

Inherits:
Base
  • Object
show all
Defined in:
lib/manageiq/loggers/container.rb

Defined Under Namespace

Classes: Formatter

Constant Summary

Constants inherited from Base

Base::MAX_LOG_LINE_LENGTH

Instance Attribute Summary

Attributes inherited from Base

#logdev

Instance Method Summary collapse

Methods inherited from Base

#level, #log_backtrace, log_hashes, #log_hashes, log_hashes_filter, #log_hashes_filter, log_hashes_filter=, #log_hashes_filter=, #silence

Constructor Details

#initialize(logdev = STDOUT, *args) ⇒ Container

Returns a new instance of Container.



4
5
6
7
8
9
10
# File 'lib/manageiq/loggers/container.rb', line 4

def initialize(logdev = STDOUT, *args)
  logdev.sync = true # Don't buffer container log output

  super

  self.formatter = Formatter.new
end

Instance Method Details

#filenameObject



12
13
14
# File 'lib/manageiq/loggers/container.rb', line 12

def filename
  "STDOUT"
end