Class: Appium::Common::Command::WsLogcat
- Inherits:
-
Appium::Core::WebSocket
- Object
- Appium::Core::WebSocket
- Appium::Common::Command::WsLogcat
- Defined in:
- lib/appium_lib/common/command/ws_logcat.rb
Overview
TODO: Remove this implementation after dropping start_logs_broadcast
Instance Method Summary collapse
- #handle_message_data(data) ⇒ Object
-
#initialize(url:, output_file: 'logcat.log') ⇒ WsLogcat
constructor
A new instance of WsLogcat.
Constructor Details
#initialize(url:, output_file: 'logcat.log') ⇒ WsLogcat
Returns a new instance of WsLogcat.
20 21 22 23 |
# File 'lib/appium_lib/common/command/ws_logcat.rb', line 20 def initialize(url:, output_file: 'logcat.log') super(url: url) @output_file = output_file end |
Instance Method Details
#handle_message_data(data) ⇒ Object
25 26 27 |
# File 'lib/appium_lib/common/command/ws_logcat.rb', line 25 def (data) File.open(@output_file, 'a') { |f| f.write("#{data}\n") } end |