Sha256: 0cbf32401b86cfdc1c27ecf4d8033a8a6cb882491bb087f616227bcae88b78dc

Contents?: true

Size: 220 Bytes

Versions: 2

Compression:

Stored size: 220 Bytes

Contents

require 'optional_logger'

module OptionalLogger
  module LoggerManagement
    def logger(logger = nil)
      return @logger if @logger && logger.nil?
      @logger = OptionalLogger::Logger.new(logger)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
optional_logger-2.1.0 lib/optional_logger/logger_management.rb
optional_logger-2.0.0 lib/optional_logger/logger_management.rb