Class: Ingenico::Connect::SDK::Logging::CommunicatorLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/ingenico/connect/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/connect/sdk/logging/communicator_logger.rb', line 9

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

Instance Method Details

#log(message, thrown = false) ⇒ Object

logs a message with or without exception

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/ingenico/connect/sdk/logging/communicator_logger.rb', line 14

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