Module: Longleaf::Logging

Overview

Module for access logging within longleaf

Defined Under Namespace

Classes: RedirectingLogger

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.initialize_logger(failure_only, log_level, log_format, datetime_format) ⇒ Object



20
21
22
23
24
25
# File 'lib/longleaf/logging.rb', line 20

def self.initialize_logger(failure_only, log_level, log_format, datetime_format)
  @logger = RedirectingLogger.new(failure_only: failure_only,
      log_level: log_level,
      log_format: log_format,
      datetime_format: datetime_format)
end

.loggerObject

Get the main logger for longleaf



12
13
14
# File 'lib/longleaf/logging.rb', line 12

def self.logger
  @logger ||= RedirectingLogger.new
end

Instance Method Details

#initialize_logger(failure_only, log_level, log_format, datetime_format) ⇒ Object



16
17
18
# File 'lib/longleaf/logging.rb', line 16

def initialize_logger(failure_only, log_level, log_format, datetime_format)
  Logging.initialize_logger(failure_only, log_level, log_format, datetime_format)
end

#loggerObject

Get the main logger for longleaf



7
8
9
# File 'lib/longleaf/logging.rb', line 7

def logger
  Logging.logger
end