Sha256: c369f7296f653386b52dbe40a3cf62cdf8871d659481e1d0c70e8dc893cbb6c6
Contents?: true
Size: 684 Bytes
Versions: 4
Compression:
Stored size: 684 Bytes
Contents
# frozen_string_literal: true 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
watir-7.3.0 | lib/watir/logger.rb |
watir-7.2.2 | lib/watir/logger.rb |
watir-7.2.1 | lib/watir/logger.rb |
watir-7.2.0 | lib/watir/logger.rb |