Class: Ingenico::Direct::SDK::Logging::CommunicatorLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/ingenico/direct/sdk/logging/communicator_logger.rb

Overview

Base logger class used in this SDK. This class is an interface and cannot be instantiated.

Instance Method Summary collapse

Constructor Details

#initializeCommunicatorLogger

Interface, no instantiation

Raises:

  • (NotImplementedError)

See Also:



9
10
11
# File 'lib/ingenico/direct/sdk/logging/communicator_logger.rb', line 9

def initialize
  raise NotImplementedError, "#{self.class.name} is not implemented."
end

Instance Method Details

#log(message, thrown = false) ⇒ Object

Logs a message with or without exception

Parameters:

  • message (String)

    the message to log

  • thrown (Exception, false) (defaults to: false)

    the exception to log, or false to log no exception

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/ingenico/direct/sdk/logging/communicator_logger.rb', line 17

def log(message, thrown = false)
  raise NotImplementedError, "#{self.class.name}#log() is not implemented."
end