Class: CoreLibrary::ApiLogger
- Inherits:
-
Object
- Object
- CoreLibrary::ApiLogger
- Defined in:
- lib/apimatic-core-interfaces/logger/api_logger.rb
Overview
An interface for logging API requests and responses. This class should not be instantiated but should be used as a base class for API logger class.
Instance Method Summary collapse
-
#log_request(request) ⇒ Object
Logs the details of an HTTP request.
-
#log_response(response) ⇒ Object
Logs the details of an HTTP response.
Instance Method Details
#log_request(request) ⇒ Object
Logs the details of an HTTP request.
8 9 10 |
# File 'lib/apimatic-core-interfaces/logger/api_logger.rb', line 8 def log_request(request) raise NotImplementedError, 'This method needs to be implemented in a child class.' end |
#log_response(response) ⇒ Object
Logs the details of an HTTP response.
14 15 16 |
# File 'lib/apimatic-core-interfaces/logger/api_logger.rb', line 14 def log_response(response) raise NotImplementedError, 'This method needs to be implemented in a child class.' end |