Sha256: 8759aed8247e992010a3dbedab87683df7528529ca974a8ffb93bf18598ac766

Contents?: true

Size: 452 Bytes

Versions: 15

Compression:

Stored size: 452 Bytes

Contents

require 'logger'
require 'dply/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

15 entries across 15 versions & 1 rubygems

Version Path
dply-0.2.19 lib/dply/logger.rb
dply-0.2.18 lib/dply/logger.rb
dply-0.2.17 lib/dply/logger.rb
dply-0.2.16 lib/dply/logger.rb
dply-0.2.15 lib/dply/logger.rb
dply-0.2.14 lib/dply/logger.rb
dply-0.2.13 lib/dply/logger.rb
dply-0.2.11 lib/dply/logger.rb
dply-0.2.10 lib/dply/logger.rb
dply-0.2.9 lib/dply/logger.rb
dply-0.2.8 lib/dply/logger.rb
dply-0.2.7 lib/dply/logger.rb
dply-0.2.6 lib/dply/logger.rb
dply-0.2.5 lib/dply/logger.rb
dply-0.2.4 lib/dply/logger.rb