Sha256: b76afcde6a03d529a3ed4d71920a3223e51c0c11ce6bc881909eb96a4e6fdab7

Contents?: true

Size: 271 Bytes

Versions: 7

Compression:

Stored size: 271 Bytes

Contents

require 'json'
module SemanticLogger
  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

7 entries across 7 versions & 1 rubygems

Version Path
semantic_logger-4.0.0 lib/semantic_logger/formatters/raw.rb
semantic_logger-4.0.0.rc1 lib/semantic_logger/formatters/raw.rb
semantic_logger-4.0.0.beta2 lib/semantic_logger/formatters/raw.rb
semantic_logger-4.0.0.beta1 lib/semantic_logger/formatters/raw.rb
semantic_logger-3.4.1 lib/semantic_logger/formatters/raw.rb
semantic_logger-3.4.0 lib/semantic_logger/formatters/raw.rb
semantic_logger-3.3.0 lib/semantic_logger/formatters/raw.rb