Class: OnlinePayments::SDK::Logging::CommunicatorLogger
- Inherits:
-
Object
- Object
- OnlinePayments::SDK::Logging::CommunicatorLogger
- Defined in:
- lib/onlinepayments/sdk/logging/communicator_logger.rb
Overview
Base logger class used in this SDK. This class is an interface and cannot be instantiated.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ CommunicatorLogger
constructor
Interface, no instantiation.
-
#log(message, thrown = nil) ⇒ Object
Logs a message with or without exception.
Constructor Details
#initialize ⇒ CommunicatorLogger
Interface, no instantiation
10 11 12 |
# File 'lib/onlinepayments/sdk/logging/communicator_logger.rb', line 10 def initialize raise NotImplementedError.new("#{self.class.name} is not implemented.") end |
Instance Method Details
#log(message, thrown = nil) ⇒ Object
Logs a message with or without exception
18 19 20 |
# File 'lib/onlinepayments/sdk/logging/communicator_logger.rb', line 18 def log(, thrown = nil) raise NotImplementedError.new("#{self.class.name}#log() is not implemented.") end |