Sha256: 4a78c1e8ff1a4d9c4d81b87317ac6f069719ae6822e8839122737db5a2c42b11

Contents?: true

Size: 308 Bytes

Versions: 7

Compression:

Stored size: 308 Bytes

Contents

class Ridgepole::Logger < ::Logger
  include Singleton

  def initialize
    super($stdout)

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

    self.level = Logger::INFO
  end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ridgepole-0.1.5 lib/ridgepole/logger.rb
ridgepole-0.1.4 lib/ridgepole/logger.rb
ridgepole-0.1.3 lib/ridgepole/logger.rb
ridgepole-0.1.2 lib/ridgepole/logger.rb
ridgepole-0.1.1 lib/ridgepole/logger.rb
ridgepole-0.1.0 lib/ridgepole/logger.rb
ridgepole-0.0.1 lib/ridgepole/logger.rb