class Sass::Logger::Base - sass-3.4.14 Documentation

# class Sass::Logger::Base

### Attributes

disabled[RW]
log_level[RW]

### Public Class Methods

new(log_level = :debug) click to toggle source

    # File lib/sass/logger/base.rb, line 15
    def initialize(log_level = :debug)
      self.log_level = log_level
    end

### Public Instance Methods

_log(level, message) click to toggle source

    # File lib/sass/logger/base.rb, line 27
    def _log(level, message)
      Kernel.warn(message)
    end

log(level, message) click to toggle source

    # File lib/sass/logger/base.rb, line 23
    def log(level, message)
      _log(level, message) if logging_level?(level)
    end

logging_level?(level) click to toggle source

    # File lib/sass/logger/base.rb, line 19
    def logging_level?(level)
      !disabled && self.class.log_level?(level, log_level)
    end