Sha256: 5f889f08eb03688eae32076e68e57f87a525c5e8ac88c51bf85a1d867821a1e4

Contents?: true

Size: 715 Bytes

Versions: 9

Compression:

Stored size: 715 Bytes

Contents

warn "MfDebugger if deprecated.  Please use MetricFu.logger"
MetricFu.lib_require { "logger" }
module MfDebugger
  extend self
  class Logger
    def self.debug_on
      warn "MfDebugger if deprecated.  Please use MetricFu.logger"
      MetricFu.logger.debug_on
    end
    def self.debug_on=(bool)
      warn "MfDebugger if deprecated.  Please use MetricFu.logger"
      MetricFu.logger.level = bool ? "debug" : "info"
    end
    def self.log(msg, &_block)
      warn "MfDebugger if deprecated.  Please use MetricFu.logger"
      MetricFu.logger.info msg
    end
    def self.debug(msg, &_block)
      warn "MfDebugger if deprecated.  Please use MetricFu.logger"
      MetricFu.logger.debug msg
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
metric_fu-4.13.0 lib/metric_fu/logging/mf_debugger.rb
fastruby-metric_fu-5.0.0 lib/metric_fu/logging/mf_debugger.rb
code_metric_fu-4.14.4 lib/metric_fu/logging/mf_debugger.rb
code_metric_fu-4.14.3 lib/metric_fu/logging/mf_debugger.rb
code_metric_fu-4.14.2 lib/metric_fu/logging/mf_debugger.rb
code_metric_fu-4.14.1 lib/metric_fu/logging/mf_debugger.rb
code_metric_fu-4.14.0 lib/metric_fu/logging/mf_debugger.rb
metric_fu-4.12.0 lib/metric_fu/logging/mf_debugger.rb
metric_fu-4.11.4 lib/metric_fu/logging/mf_debugger.rb