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.4.10 lib/ridgepole/logger.rb
ridgepole-0.4.10.beta lib/ridgepole/logger.rb
ridgepole-0.4.9 lib/ridgepole/logger.rb
ridgepole-0.4.8 lib/ridgepole/logger.rb
ridgepole-0.4.8.rc2 lib/ridgepole/logger.rb
ridgepole-0.4.8.rc1 lib/ridgepole/logger.rb
ridgepole-0.4.7 lib/ridgepole/logger.rb
ridgepole-0.4.6 lib/ridgepole/logger.rb
ridgepole-0.4.5 lib/ridgepole/logger.rb
ridgepole-0.4.4 lib/ridgepole/logger.rb
ridgepole-0.4.3 lib/ridgepole/logger.rb
ridgepole-0.4.2 lib/ridgepole/logger.rb
ridgepole-0.4.1 lib/ridgepole/logger.rb
ridgepole-0.4.0 lib/ridgepole/logger.rb
ridgepole-0.3.9 lib/ridgepole/logger.rb
ridgepole-0.3.8 lib/ridgepole/logger.rb
ridgepole-0.3.7 lib/ridgepole/logger.rb
ridgepole-0.3.6 lib/ridgepole/logger.rb
ridgepole-0.3.5 lib/ridgepole/logger.rb
ridgepole-0.3.4 lib/ridgepole/logger.rb