Sha256: bf4aea2f06f9979008bba0490be98670adaaab1e0fd1e79c3cfb457cca1477e9

Contents?: true

Size: 392 Bytes

Versions: 8

Compression:

Stored size: 392 Bytes

Contents

require 'logger'

module ReVIEW
  class Logger < ::Logger
    def initialize(*logdev)
      if logdev.empty?
        super(STDERR)
        self.formatter = ->(severity, _datetime, _progname, msg) { "#{severity}: #{msg}\n" }
      else
        super
      end
    end
  end

  def self.logger
    @logger ||= ReVIEW::Logger.new
  end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
review-3.2.0 lib/review/logger.rb
review-3.1.0 lib/review/logger.rb
review-3.0.0 lib/review/logger.rb
review-3.0.0.rc1 lib/review/logger.rb
review-3.0.0.preview4 lib/review/logger.rb
review-3.0.0.preview3 lib/review/logger.rb
review-3.0.0.preview2 lib/review/logger.rb
review-3.0.0.preview1 lib/review/logger.rb