Sha256: 0f4d1fa4557ec061c5976b103de2bdf04b9c4e447cedd3c91a59b44c11715102

Contents?: true

Size: 366 Bytes

Versions: 12

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

module Pakyow
  class Logger
    class Formatter
      attr_reader :output

      def initialize(output)
        @output = output
      end

      def call(event, **options)
        event = yield if block_given?
        format(event, **options)
      end

      def verbose!(value)
        @verbose = value
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pakyow-core-1.0.6 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.5 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.4 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.3 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.2 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.1 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.0 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.0.rc5 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.0.rc4 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.0.rc3 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.0.rc2 lib/pakyow/logger/formatter.rb
pakyow-core-1.0.0.rc1 lib/pakyow/logger/formatter.rb