Class: Libhoney::LogClient
Overview
Note:
This class is intended for use in development, for example if you want to verify what events your instrumented code is sending. Use in production is not recommended.
A client that prints events to stderr or a file for inspection. Does not actually send any events to Honeycomb; instead, records events for later inspection.
Constant Summary
Constants inherited from Client
Client::API_HOST, Client::DEFAULT_DATASET
Instance Attribute Summary
Attributes inherited from Client
#block_on_responses, #block_on_send, #max_batch_size, #max_concurrent_batches, #pending_work_capacity, #responses, #send_frequency
Instance Method Summary collapse
-
#initialize(*args, output: $stderr, verbose: false, **kwargs) ⇒ LogClient
constructor
A new instance of LogClient.
Methods inherited from Client
#add, #add_dynamic_field, #add_field, #close, #send_dropped_response, #send_event, #send_now, #should_drop
Constructor Details
#initialize(*args, output: $stderr, verbose: false, **kwargs) ⇒ LogClient
Returns a new instance of LogClient.
13 14 15 16 17 |
# File 'lib/libhoney/log_client.rb', line 13 def initialize(*args, output: $stderr, verbose: false, **kwargs) super(*args, transmission: LogTransmissionClient.new(output: output, verbose: verbose), **kwargs) end |