Sha256: 8a29e215b7647c9102166bbe143a5f0714bba29d18b24d4a5068b47500104836

Contents?: true

Size: 317 Bytes

Versions: 6

Compression:

Stored size: 317 Bytes

Contents

require 'logger'

module Graphiterb

  class << self; attr_accessor :log end

  def self.instantiate_logger!
    Graphiterb.log ||= Logger.new(Settings[:log] || STDOUT)
    Graphiterb.log.datetime_format = "%Y%m%d-%H:%M:%S "
    Graphiterb.log.level           = Logger::INFO
  end

end
Graphiterb.instantiate_logger!

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
graphiterb-0.2.13 lib/graphiterb/utils/log.rb
graphiterb-0.2.12 lib/graphiterb/utils/log.rb
graphiterb-0.2.11 lib/graphiterb/utils/log.rb
graphiterb-0.2.10 lib/graphiterb/utils/log.rb
graphiterb-0.2.9 lib/graphiterb/utils/log.rb
graphiterb-0.2.7 lib/graphiterb/utils/log.rb