18 lines
274 B
Ruby
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 |