Class: Ferrum::Log::Json
- Inherits:
-
Object
- Object
- Ferrum::Log::Json
- Defined in:
- lib/ferrum/log/json.rb,
sig/ferrum/log/json.rbs
Overview
Formats CDP messages as JSON alone, one message per line, for tools such
as jq. Commands, responses and events tell apart by their keys: id
and method, id and result or error, method alone. Never
colored. Picked with FERRUM_LOG_FORMAT=json.
Instance Method Summary collapse
-
#initialize ⇒ Json
constructor
A new instance of Json.
- #received(message, raw, _elapsed, _command = nil) ⇒ String
- #sent(message, _elapsed) ⇒ String
Constructor Details
#initialize ⇒ Json
Returns a new instance of Json.
12 |
# File 'lib/ferrum/log/json.rb', line 12 def initialize(**); end |