Sha256: 66f347e051663f51465a3d50765a30bd43bafc14f44b882b4ef8268152ab8e3c

Contents?: true

Size: 390 Bytes

Versions: 138

Compression:

Stored size: 390 Bytes

Contents

class Ridgepole::Logger < ::Logger
  include Singleton
  cattr_accessor :verbose

  def initialize
    super($stdout)

    self.formatter = proc do |severity, datetime, progname, msg|
      "#{msg}\n"
    end

    self.level = Logger::INFO
  end

  def verbose_info(msg)
    info(msg) if verbose
  end

  def set_debug(value)
    self.level = value ? Logger::DEBUG : Logger::INFO
  end
end

Version data entries

138 entries across 138 versions & 1 rubygems

Version Path
ridgepole-0.7.3.beta lib/ridgepole/logger.rb
ridgepole-0.7.2 lib/ridgepole/logger.rb
ridgepole-0.7.2.beta lib/ridgepole/logger.rb
ridgepole-0.7.1 lib/ridgepole/logger.rb
ridgepole-0.7.1.beta5 lib/ridgepole/logger.rb
ridgepole-0.7.1.beta4 lib/ridgepole/logger.rb
ridgepole-0.7.1.beta3 lib/ridgepole/logger.rb
ridgepole-0.7.1.beta2 lib/ridgepole/logger.rb
ridgepole-0.7.1.beta lib/ridgepole/logger.rb
ridgepole-0.7.0 lib/ridgepole/logger.rb
ridgepole-0.7.0.rc1 lib/ridgepole/logger.rb
ridgepole-0.7.0.beta22 lib/ridgepole/logger.rb
ridgepole-0.6.6 lib/ridgepole/logger.rb
ridgepole-0.7.0.beta21 lib/ridgepole/logger.rb
ridgepole-0.7.0.beta20 lib/ridgepole/logger.rb
ridgepole-0.7.0.beta19 lib/ridgepole/logger.rb
ridgepole-0.7.0.beta18 lib/ridgepole/logger.rb
ridgepole-0.7.0.beta17 lib/ridgepole/logger.rb
ridgepole-0.7.0.beta16 lib/ridgepole/logger.rb
ridgepole-0.7.0.beta15 lib/ridgepole/logger.rb