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.0.beta3 lib/ridgepole/logger.rb
ridgepole-0.6.0.beta2 lib/ridgepole/logger.rb
ridgepole-0.6.0.beta lib/ridgepole/logger.rb
ridgepole-0.5.3.beta2 lib/ridgepole/logger.rb
ridgepole-0.5.3.beta lib/ridgepole/logger.rb
ridgepole-0.5.2 lib/ridgepole/logger.rb
ridgepole-0.5.2.beta6 lib/ridgepole/logger.rb
ridgepole-0.5.2.beta5 lib/ridgepole/logger.rb
ridgepole-0.5.2.beta4 lib/ridgepole/logger.rb
ridgepole-0.5.2.beta3 lib/ridgepole/logger.rb
ridgepole-0.5.2.beta2 lib/ridgepole/logger.rb
ridgepole-0.5.2.beta lib/ridgepole/logger.rb
ridgepole-0.5.1 lib/ridgepole/logger.rb
ridgepole-0.5.1.beta3 lib/ridgepole/logger.rb
ridgepole-0.5.1.beta2 lib/ridgepole/logger.rb
ridgepole-0.5.1.beta lib/ridgepole/logger.rb
ridgepole-0.5.0 lib/ridgepole/logger.rb
ridgepole-0.5.0.beta lib/ridgepole/logger.rb
ridgepole-0.4.12 lib/ridgepole/logger.rb
ridgepole-0.4.11.beta lib/ridgepole/logger.rb