Sha256: 3177555bac51bcc0b047be323671c52afea1587962efeb625fbeb7ca34c337fa

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 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
    # @param [Array] libs load libraries (to require)
    # @return [Boolean]
    def self.check(config_dev, plugin_dir = nil, libs = nil)
      Fluent::Format::Check.new(config_dev, plugin_dir, libs).run
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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