Class: Fluent::BugsnagOutput
- Inherits:
-
BufferedOutput
- Object
- BufferedOutput
- Fluent::BugsnagOutput
- Defined in:
- lib/fluent/plugin/out_bugsnag.rb
Instance Method Summary collapse
Instance Method Details
#format(tag, time, record) ⇒ Object
14 15 16 |
# File 'lib/fluent/plugin/out_bugsnag.rb', line 14 def format(tag, time, record) [tag, time, record].to_msgpack end |
#write(chunk) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/fluent/plugin/out_bugsnag.rb', line 18 def write(chunk) chunk.msgpack_each do |(tag,time,record)| = record['options'] || {} request(record['url'], record['body'], ) end end |