lib/logstash/codecs/plain.rb in logstash-codec-plain-0.1.0 vs lib/logstash/codecs/plain.rb in logstash-codec-plain-0.1.1
- old
+ new
@@ -8,22 +8,22 @@
# framing in their transport protocol (such as zeromq, rabbitmq, redis, etc)
class LogStash::Codecs::Plain < LogStash::Codecs::Base
config_name "plain"
milestone 3
- # Set the message you which to emit for each event. This supports sprintf
+ # Set the message you which to emit for each event. This supports `sprintf`
# strings.
#
# This setting only affects outputs (encoding of events).
config :format, :validate => :string
- # The character encoding used in this input. Examples include "UTF-8"
- # and "cp1252"
+ # The character encoding used in this input. Examples include `UTF-8`
+ # and `cp1252`
#
- # This setting is useful if your log files are in Latin-1 (aka cp1252)
- # or in another character set other than UTF-8.
+ # This setting is useful if your log files are in `Latin-1` (aka `cp1252`)
+ # or in another character set other than `UTF-8`.
#
- # This only affects "plain" format logs since json is UTF-8 already.
+ # This only affects "plain" format logs since json is `UTF-8` already.
config :charset, :validate => ::Encoding.name_list, :default => "UTF-8"
public
def register
@converter = LogStash::Util::Charset.new(@charset)