Sha256: cca13826cfe99218155da62fee4e6c0b9edbc895d862ef696f0441fbe164a92c

Contents?: true

Size: 398 Bytes

Versions: 80

Compression:

Stored size: 398 Bytes

Contents

module Kumogata
  def self.logger
    Kumogata::Logger.instance
  end

  class 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
end

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
kumogata-0.5.12 lib/kumogata/logger.rb
kumogata-0.5.11 lib/kumogata/logger.rb
kumogata-0.5.10 lib/kumogata/logger.rb
kumogata-0.5.9 lib/kumogata/logger.rb
kumogata-0.5.8 lib/kumogata/logger.rb
kumogata-0.5.7 lib/kumogata/logger.rb
kumogata-0.5.6 lib/kumogata/logger.rb
kumogata-0.5.5 lib/kumogata/logger.rb
kumogata-0.5.4 lib/kumogata/logger.rb
kumogata-0.5.3 lib/kumogata/logger.rb
kumogata-0.5.2 lib/kumogata/logger.rb
kumogata-0.5.2.beta2 lib/kumogata/logger.rb
kumogata-0.5.2.beta lib/kumogata/logger.rb
kumogata-0.5.1 lib/kumogata/logger.rb
kumogata-0.5.0 lib/kumogata/logger.rb
kumogata-0.4.19 lib/kumogata/logger.rb
kumogata-0.4.18 lib/kumogata/logger.rb
kumogata-0.4.17 lib/kumogata/logger.rb
kumogata-0.4.16 lib/kumogata/logger.rb
kumogata-0.4.15 lib/kumogata/logger.rb