Class: Watir::Logger

Inherits:
Selenium::WebDriver::Logger
  • Object
show all
Defined in:
lib/watir/logger.rb

Overview

Examples:

Enable full logging

Watir.logger.level = :debug

Log to file

Watir.logger.output = 'watir.log'

Use logger manually

Watir.logger.info('This is info message')
Watir.logger.warn('This is warning message')

Instance Method Summary collapse

Constructor Details

#initializeLogger

Returns a new instance of Logger.



22
23
24
# File 'lib/watir/logger.rb', line 22

def initialize
  super('Watir')
end

Instance Method Details

#selenium=(val) ⇒ Object



26
27
28
# File 'lib/watir/logger.rb', line 26

def selenium=(val)
  Selenium::WebDriver.logger.level = val
end