Class: LogStash::Event
- Inherits:
-
Object
- Object
- LogStash::Event
- Defined in:
- lib/logstasher/log_subscriber.rb
Overview
active_support monkeypatches Hash#to_json with a version that does not encode time correctly for LogStash. Using JSON.generate bypasses the monkeypatch.
Instance Method Summary collapse
Instance Method Details
#to_json ⇒ Object
10 11 12 |
# File 'lib/logstasher/log_subscriber.rb', line 10 def to_json return JSON.generate(@data) end |