Class: WordsApi::AbstractLogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/words_api/logging/sdk_logger.rb

Overview

Represents the generic logger facade

Instance Method Summary collapse

Instance Method Details

#log(level, message, params) ⇒ Object

Logs a message with a specified log level and additional parameters.

Parameters:

  • level (Symbol)

    The log level of the message.

  • message (String)

    The message to log.

  • params (Hash)

    Additional parameters to include in the log message.

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/words_api/logging/sdk_logger.rb', line 13

def log(level, message, params)
  raise NotImplementedError, 'This method needs to be implemented in a child class.'
end