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.6.5 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta14 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta13 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta12 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta11 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta10 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta9 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta8 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta7 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta6 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta5 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta4 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta3 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta2 lib/ridgepole/logger.rb
ridgepole-0.6.5.beta lib/ridgepole/logger.rb
ridgepole-0.6.4 lib/ridgepole/logger.rb
ridgepole-0.6.4.beta9 lib/ridgepole/logger.rb
ridgepole-0.6.4.beta8 lib/ridgepole/logger.rb
ridgepole-0.6.4.beta7 lib/ridgepole/logger.rb
ridgepole-0.6.4.beta6 lib/ridgepole/logger.rb