webrat/lib/webrat/logging.rb
2008-04-05 17:49:18 +01:00

18 lines
274 B
Ruby

module Webrat
module Logging
def debug_log(message) # :nodoc:
return unless logger
logger.debug
end
def logger # :nodoc:
if defined? RAILS_DEFAULT_LOGGER
RAILS_DEFAULT_LOGGER
else
nil
end
end
end
end