Sha256: da85c6df806ad40f742af0c69f242303cbac2e91623abc995bf5c02fa3182b5b

Contents?: true

Size: 562 Bytes

Versions: 552

Compression:

Stored size: 562 Bytes

Contents

require 'sass/logger/log_level'

class Sass::Logger::Base
  
  include Sass::Logger::LogLevel

  attr_accessor :log_level
  attr_accessor :disabled

  log_level :trace
  log_level :debug
  log_level :info
  log_level :warn
  log_level :error

  def initialize(log_level = :debug)
    self.log_level = log_level
  end

  def logging_level?(level)
    !disabled && self.class.log_level?(level, log_level)
  end

  def log(level, message)
    self._log(level, message) if logging_level?(level)
  end

  def _log(level, message)
    Kernel::warn(message)
  end

end

Version data entries

552 entries across 266 versions & 16 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/sass-3.2.19/lib/sass/logger/base.rb
classiccms-0.7.5 vendor/bundle/gems/sass-3.1.15/lib/sass/logger/base.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/logger/base.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.4/vendor/sass/lib/sass/logger/base.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.5/vendor/sass/lib/sass/logger/base.rb
classiccms-0.7.5 vendor/bundle/gems/sass-3.1.18/lib/sass/logger/base.rb
classiccms-0.7.5 vendor/bundle/gems/sass-3.1.19/lib/sass/logger/base.rb
classiccms-0.7.5 vendor/bundle/gems/sass-3.1.17/lib/sass/logger/base.rb
classiccms-0.7.4 vendor/bundle/gems/sass-3.1.17/lib/sass/logger/base.rb
classiccms-0.7.4 vendor/bundle/gems/sass-3.1.18/lib/sass/logger/base.rb
classiccms-0.7.4 vendor/bundle/gems/sass-3.1.19/lib/sass/logger/base.rb
classiccms-0.7.4 vendor/bundle/gems/sass-3.1.15/lib/sass/logger/base.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.4/vendor/sass/lib/sass/logger/base.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/logger/base.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.5/vendor/sass/lib/sass/logger/base.rb
classiccms-0.7.3 vendor/bundle/gems/haml-3.1.5/vendor/sass/lib/sass/logger/base.rb
classiccms-0.7.3 vendor/bundle/gems/sass-3.1.18/lib/sass/logger/base.rb
classiccms-0.7.3 vendor/bundle/gems/haml-3.1.4/vendor/sass/lib/sass/logger/base.rb
classiccms-0.7.3 vendor/bundle/gems/sass-3.1.17/lib/sass/logger/base.rb
classiccms-0.7.3 vendor/bundle/gems/haml-3.1.6/vendor/sass/lib/sass/logger/base.rb