Module: AwsSqsMoniter::Logging

Defined in:
lib/aws_sqs_moniter/logging.rb

Defined Under Namespace

Classes: Formatter

Class Attribute Summary collapse

Class Attribute Details

.default_log_deviceObject

Returns the value of attribute default_log_device.



53
54
55
# File 'lib/aws_sqs_moniter/logging.rb', line 53

def default_log_device
  @default_log_device
end

.loggerObject



56
57
58
59
60
61
62
63
# File 'lib/aws_sqs_moniter/logging.rb', line 56

def logger
  @logger ||= begin
    Logger.new(default_log_device || STDOUT).tap do |l|
      l.level = Logger::INFO
      l.formatter = Formatter.new
    end
  end
end