Sha256: cc81f4dd45e8ca5388a4e9f028afa1ecf504e516601272c98faf7234bd0fc5e6
Contents?: true
Size: 634 Bytes
Versions: 11
Compression:
Stored size: 634 Bytes
Contents
# encoding: utf-8 require "logstash/namespace" require "logstash/util" require "logstash/util/worker_threads_default_printer" # This class exists to format the settings for defaults used module LogStash module Util class DefaultsPrinter def self.print(settings) new(settings).print end def initialize(settings) @settings = settings @printers = [workers] end def print collector = [] @printers.each do |printer| printer.visit(collector) end "Default settings used: " + collector.join(', ') end private def workers WorkerThreadsDefaultPrinter.new(@settings) end end end end
Version data entries
11 entries across 10 versions & 2 rubygems