class LogStash::Event

active_support monkeypatches Hash#to_json with a version that does not encode time correctly for LogStash. Using JSON.generate bypasses the monkeypatch.

Public Instance Methods

to_json() click to toggle source
# File lib/logstasher/log_subscriber.rb, line 10
def to_json
  return JSON.generate(@data)
end