Sha256: 6548a20a54beb84ad26b70b0d22f522583e96715c4e973ad28e4178cebebb1b3

Contents?: true

Size: 404 Bytes

Versions: 28

Compression:

Stored size: 404 Bytes

Contents

require 'logger'

# This log overlay module, provides access to the +log+ method.
module RSpecSystem::Log
  # Return the default Logger object.
  #
  # @return [Logger] default logger object
  def log
    return @logger if @logger
    @logger = ::Logger.new(STDOUT)
    @logger.progname = 'rspec-system'
    @logger.formatter = Proc.new do |s, t, p, m|
      "#{s}: #{m}\n"
    end
    @logger
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rspec-system-2.2.1 lib/rspec-system/log.rb
rspec-system-2.2.0 lib/rspec-system/log.rb
rspec-system-2.1.2 lib/rspec-system/log.rb
rspec-system-2.1.1 lib/rspec-system/log.rb
rspec-system-2.1.0 lib/rspec-system/log.rb
rspec-system-1.7.1 lib/rspec-system/log.rb
rspec-system-2.0.0 lib/rspec-system/log.rb
rspec-system-1.7.0 lib/rspec-system/log.rb
rspec-system-1.6.0 lib/rspec-system/log.rb
rspec-system-1.5.0 lib/rspec-system/log.rb
rspec-system-1.4.0 lib/rspec-system/log.rb
rspec-system-1.3.0 lib/rspec-system/log.rb
rspec-system-1.2.1 lib/rspec-system/log.rb
rspec-system-1.2.0 lib/rspec-system/log.rb
rspec-system-1.1.0 lib/rspec-system/log.rb
rspec-system-1.0.0 lib/rspec-system/log.rb
rspec-system-0.3.6 lib/rspec-system/log.rb
rspec-system-0.3.5 lib/rspec-system/log.rb
rspec-system-0.3.4 lib/rspec-system/log.rb
rspec-system-0.3.3 lib/rspec-system/log.rb