Permalink
Browse files

Merge pull request #186 from rurounijones/add_sources

Add getters and setters for source_host and source_path
  • Loading branch information...
2 parents 1138ce7 + 259203f commit 26756b3922cdf0ede4f54d790c618b697bbd86a6 @jordansissel jordansissel committed Aug 14, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/logstash/event.rb
View
@@ -94,6 +94,14 @@ def source=(val)
end # def source=
public
+ def source_host; @data["@source_host"]; end # def source_host
+ def source_host=(val); @data["@source_host"] = val; end # def source_host=
+
+ public
+ def source_path; @data["@source_path"]; end # def source_path
+ def source_path=(val); @data["@source_path"] = val; end # def source_path=
+
+ public
def message; @data["@message"]; end # def message
def message=(val); @data["@message"] = val; end # def message=

0 comments on commit 26756b3

Please sign in to comment.