Sha256: cbd853bff3e38d2de29b6cf5d7c18f32c44152ea3871478c5f6a301a86fb8ec6
Contents?: true
Size: 653 Bytes
Versions: 6
Compression:
Stored size: 653 Bytes
Contents
require 'forwardable' require 'logger' # Code adapted from Selenium Implementation # https://github.com/SeleniumHQ/selenium/blob/trunk/rb/lib/selenium/webdriver/common/logger.rb module Watir # # @example Enable full logging # Watir.logger.level = :debug # # @example Log to file # Watir.logger.output = 'watir.log' # # @example Use logger manually # Watir.logger.info('This is info message') # Watir.logger.warn('This is warning message') # class Logger < Selenium::WebDriver::Logger def initialize super('Watir') end def selenium=(val) Selenium::WebDriver.logger.level = val end end end
Version data entries
6 entries across 6 versions & 1 rubygems