Sha256: 55fa5874b1eec4ee4b6d5730c36fa2889c70c5ac1b3cc46c299739046c9a6faa

Contents?: true

Size: 648 Bytes

Versions: 22

Compression:

Stored size: 648 Bytes

Contents

# frozen_string_literal: true

module Prefab
  class InternalLogger < ::Logger
    def initialize(path, logger)
      @path = path
      @logger = logger
    end

    def debug(progname = nil)
      @logger.log_internal yield, @path, progname, DEBUG
    end

    def info(progname = nil)
      @logger.log_internal yield, @path, progname, INFO
    end

    def warn(progname = nil)
      @logger.log_internal yield, @path, progname, WARN
    end

    def error(progname = nil)
      @logger.log_internal yield, @path, progname, ERROR
    end

    def fatal(progname = nil)
      @logger.log_internal yield, @path, progname, FATAL
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
prefab-cloud-ruby-1.1.2 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.1.1 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.1.0 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.0.1 lib/prefab/internal_logger.rb
prefab-cloud-ruby-1.0.0 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.24.6 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.24.5 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.24.4 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.24.3 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.24.2 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.24.1 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.24.0 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.23.8 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.23.7 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.23.6 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.23.5 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.23.4 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.23.3 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.23.2 lib/prefab/internal_logger.rb
prefab-cloud-ruby-0.23.1 lib/prefab/internal_logger.rb