Class: Appium::Core::Logs

Inherits:
Object
  • Object
show all
Defined in:
lib/appium_lib_core/common/log.rb

Instance Method Summary collapse

Constructor Details

#initialize(bridge) ⇒ Logs



4
5
6
# File 'lib/appium_lib_core/common/log.rb', line 4

def initialize(bridge)
  @bridge = bridge
end

Instance Method Details

#available_types[Hash]

Get a list of available log types

Examples:


@driver.logs.available_types # [:syslog, :crashlog, :performance]


27
28
29
# File 'lib/appium_lib_core/common/log.rb', line 27

def available_types
  @bridge.available_log_types
end

#get(type) ⇒ [Selenium::WebDriver::LogEntry]

Returns A list of logs data.

Examples:


@driver.logs.get "syslog" # []
@driver.logs.get :syslog # []


16
17
18
# File 'lib/appium_lib_core/common/log.rb', line 16

def get(type)
  @bridge.log type
end