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, request:, result:) ⇒ String

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

Parameters:

Returns:

  • (String)

    The formatted string

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/gruf/interceptors/instrumentation/request_logging/formatters/base.rb', line 35

def format(_payload, request:, result:)
  raise NotImplementedError
end