class Ingenico::Direct::SDK::Logging::CommunicatorLogger

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

Public Class Methods

new() click to toggle source

Interface, no instantiation @see Ingenico::Direct::SDK::Logging::StdoutCommunicatorLogger @see Ingenico::Direct::SDK::Logging::RubyCommunicatorLogger

# File lib/ingenico/direct/sdk/logging/communicator_logger.rb, line 9
def initialize
  raise NotImplementedError, "#{self.class.name} is not implemented."
end

Public Instance Methods

log(message, thrown = false) click to toggle source

Logs a message with or without exception

@param message [String] the message to log @param thrown [Exception, false] the exception to log, or false to log no exception

# 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