Sha256: f0c8cb2f01824b4cf2ee88b372f7e83e486e31f00bdefe3a66e7d4ed0e39a385

Contents?: true

Size: 456 Bytes

Versions: 16

Compression:

Stored size: 456 Bytes

Contents

require 'logger'
require_relative 'custom_logger'
module Dply
  module Logger

    class << self
      attr_writer :logger
    end

    def self.logger
      @logger ||= ::Dply::CustomLogger.new(STDOUT)
    end

    def self.stderr
      @stderr ||= ::Logger.new(STDERR)
    end

    def logger
      ::Dply::Logger.logger
    end

    def stderr
      ::Dply::Logger.stderr
    end

    def debug?
      logger.level == ::Logger::DEBUG
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dply-0.3.15 lib/dply/logger.rb
dply-0.3.14 lib/dply/logger.rb
dply-0.3.13 lib/dply/logger.rb
dply-0.3.12 lib/dply/logger.rb
dply-0.3.11 lib/dply/logger.rb
dply-0.3.10 lib/dply/logger.rb
dply-0.3.9 lib/dply/logger.rb
dply-0.3.8 lib/dply/logger.rb
dply-0.3.7 lib/dply/logger.rb
dply-0.3.6 lib/dply/logger.rb
dply-0.3.5 lib/dply/logger.rb
dply-0.3.4 lib/dply/logger.rb
dply-0.3.3 lib/dply/logger.rb
dply-0.3.2 lib/dply/logger.rb
dply-0.3.1 lib/dply/logger.rb
dply-0.3.0 lib/dply/logger.rb