Method: Fluent::Plugin::FileOutput#write_gzip_from_gzipped_chunk

Defined in:
lib/fluent/plugin/out_file.rb

#write_gzip_from_gzipped_chunk(path, chunk) ⇒ Object



256
257
258
259
260
# File 'lib/fluent/plugin/out_file.rb', line 256

def write_gzip_from_gzipped_chunk(path, chunk)
  File.open(path, "ab", @file_perm) do |f|
    chunk.write_to(f, compressed: :gzip)
  end
end