Module: BrandLogo::Logging

Extended by:
T::Sig
Defined in:
lib/brand_logo/logging.rb

Overview

Centralized logging for the gem. Replaces the DebugLogger module’s debug boolean pattern.

Usage:

BrandLogo::Logging.logger.level = Logger::DEBUG  # enable verbose output
BrandLogo::Logging.logger = MyCustomLogger.new   # inject custom logger

Class Method Summary collapse

Class Method Details

.loggerObject



20
21
22
# File 'lib/brand_logo/logging.rb', line 20

def self.logger
  @logger
end

.logger=(logger) ⇒ Object



25
26
27
# File 'lib/brand_logo/logging.rb', line 25

def self.logger=(logger)
  @logger = logger
end