Skip to content

Commit 5fc338e

Browse files
committed
remove obsolete option message_format
1 parent 05b5980 commit 5fc338e

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 4.1.0
2+
- Remove obsolete option `message_format`
3+
14
## 4.0.1
25
- Move one log message from info to debug to avoid noise
36

lib/logstash/outputs/file.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ class LogStash::Outputs::File < LogStash::Outputs::Base
3737
# E.g: `/%{myfield}/`, `/test-%{myfield}/` are not valid paths
3838
config :path, :validate => :string, :required => true
3939

40-
config :message_format, :validate => :string, :obsolete => "You can achieve the same behavior with the 'line' codec"
41-
4240
# Flush interval (in seconds) for flushing writes to log files.
4341
# 0 will flush on every message.
4442
config :flush_interval, :validate => :number, :default => 2
@@ -92,11 +90,6 @@ def register
9290
@last_stale_cleanup_cycle = now
9391
@flush_interval = @flush_interval.to_i
9492
@stale_cleanup_interval = 10
95-
96-
if @message_format
97-
@codec = LogStash::Plugin.lookup("codec", "line").new
98-
@codec.format = @message_format
99-
end
10093
end # def register
10194

10295
private

logstash-output-file.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22

33
s.name = 'logstash-output-file'
4-
s.version = '4.0.2'
4+
s.version = '4.1.0'
55
s.licenses = ['Apache License (2.0)']
66
s.summary = "This output will write events to files on disk"
77
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"

0 commit comments

Comments
 (0)