Class: Gruf::Interceptors::Instrumentation::RequestLogging::Formatters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gruf/interceptors/instrumentation/request_logging/formatters/base.rb

Overview

Base class for request log formatting

Direct Known Subclasses

Logstash, Plain

Instance Method Summary collapse

Instance Method Details

#format(_payload) ⇒ String

Format the parameters into a loggable string. Must be implemented in every derivative class

Parameters:

  • _payload (Hash)

    The incoming request payload

Returns:

  • (String)

    The formatted string

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/gruf/interceptors/instrumentation/request_logging/formatters/base.rb', line 31

def format(_payload)
  raise NotImplementedError
end