Sha256: 220abc83ce00bf097b10c33958d18270a9ff79604d172af6fb62a65a7548d597

Contents?: true

Size: 230 Bytes

Versions: 9

Compression:

Stored size: 230 Bytes

Contents

require 'logger'

module Log

  @@logger       = Logger.new(STDOUT)
  @@logger.level = Logger::INFO

  def logger
    @@logger
  end

  def self.verbose(enable)
    @@logger.level = enable ? Logger::DEBUG : Logger::INFO
  end

end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
stf-client-neofreko-0.1.9 lib/stf/log/log.rb
stf-client-neofreko-0.1.8 lib/stf/log/log.rb
stf-client-neofreko-0.1.7 lib/stf/log/log.rb
stf-client-0.1.6 lib/stf/log/log.rb
stf-client-0.1.4 lib/stf/log/log.rb
stf-client-0.1.3 lib/stf/log/log.rb
stf-client-0.1.2 lib/stf/log/log.rb
stf-client-0.1.1 lib/stf/log/log.rb
stf-client-0.1.0 lib/stf/log/log.rb