Sha256: c02f235f9aa54d015573eb114dc8d47fc2c513ab136efb57678d678b8068a274

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

$log = Fluent::Log.new($stderr, Fluent::Log::LEVEL_WARN)

module Fluent
  class Format
    # Format config file
    #
    # @param [IO|String] config_dev
    # @return [String] the formatted config
    def self.format(config_dev)
      Fluent::Format::Format.new(config_dev).run
    end

    # Check config file
    #
    # @param [IO|String] config_dev
    # @param [String] plugin_dir the plugin directory
    # @return [Boolean]
    def self.check(config_dev, plugin_dir = nil)
      Fluent::Format::Check.new(config_dev, plugin_dir).run
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-format-0.2.2 lib/fluent/format.rb