Method: Fluent::RollbarOutput#format
- Defined in:
- lib/fluent/plugin/out_rollbar.rb
#format(tag, time, record) ⇒ Object
This method is called when an event reaches to Fluentd. Convert the event to a raw string.
40 41 42 43 44 |
# File 'lib/fluent/plugin/out_rollbar.rb', line 40 def format(tag, time, record) # [tag, time, record].to_json + "\n" ## Alternatively, use msgpack to serialize the object. [tag, time, record].to_msgpack end |