Sha256: 9d2590adcd3a078646cde87febff8463893ca8fd54f044c9e424b4b54a5e9511
Contents?: true
Size: 433 Bytes
Versions: 29
Compression:
Stored size: 433 Bytes
Contents
require "logger" module Webrat module Logging #:nodoc: def debug_log(message) # :nodoc: return unless logger logger.debug message end def logger # :nodoc: case Webrat.configuration.mode when :rails defined?(RAILS_DEFAULT_LOGGER) ? RAILS_DEFAULT_LOGGER : nil when :merb ::Merb.logger else @logger ||= ::Logger.new("webrat.log") end end end end
Version data entries
29 entries across 29 versions & 14 rubygems