Module: Longleaf::Logging
- Included in:
- CLI, EventStatusTracking, FileCheckService, FileSelector, FixityCheckService, MetadataDeserializer, MetadataSerializer, PreserveCommand, PreserveEvent, RegisteredFileSelector, ReindexCommand, RsyncReplicationService, SequelIndexDriver, ServiceCandidateFilesystemIterator, ServiceCandidateIndexIterator
- Defined in:
- lib/longleaf/logging.rb,
lib/longleaf/logging/redirecting_logger.rb
Overview
Module for access logging within longleaf
Defined Under Namespace
Classes: RedirectingLogger
Class Method Summary collapse
- .initialize_logger(failure_only, log_level, log_format, datetime_format) ⇒ Object
-
.logger ⇒ Object
Get the main logger for longleaf.
Instance Method Summary collapse
- #initialize_logger(failure_only, log_level, log_format, datetime_format) ⇒ Object
-
#logger ⇒ Object
Get the main logger for longleaf.
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 |
.logger ⇒ Object
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 |