Sha256: 0a69598e878581a98f0ef03a47046a2fde77d5d41b48cc4836046fe76f15e06b

Contents?: true

Size: 264 Bytes

Versions: 18

Compression:

Stored size: 264 Bytes

Contents

require "json"
module Sapience
  module Formatters
    class Raw < Base
      # Returns log messages in Hash format
      def call(log, logger)
        log.to_h(log_host ? logger.host : nil, log_application ? logger.application : nil)
      end

    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
sapience-0.2.4 lib/sapience/formatters/raw.rb
sapience-0.2.3 lib/sapience/formatters/raw.rb
sapience-0.2.2 lib/sapience/formatters/raw.rb
sapience-0.2.1 lib/sapience/formatters/raw.rb
sapience-0.2.0 lib/sapience/formatters/raw.rb
sapience-0.1.13 lib/sapience/formatters/raw.rb
sapience-0.1.12 lib/sapience/formatters/raw.rb
sapience-0.1.11 lib/sapience/formatters/raw.rb
sapience-0.1.10 lib/sapience/formatters/raw.rb
sapience-0.1.9 lib/sapience/formatters/raw.rb
sapience-0.1.8 lib/sapience/formatters/raw.rb
sapience-0.1.7 lib/sapience/formatters/raw.rb
sapience-0.1.6 lib/sapience/formatters/raw.rb
sapience-0.1.5 lib/sapience/formatters/raw.rb
sapience-0.1.4 lib/sapience/formatters/raw.rb
sapience-0.1.3 lib/sapience/formatters/raw.rb
sapience-0.1.2 lib/sapience/formatters/raw.rb
sapience-0.1.1 lib/sapience/formatters/raw.rb