Logging
The SDK logging component is configured via a configuration file for the selected logging platform. The examples available on http://sdk.sportradar.com use logback (Java version) and log4net (.net version) and can be used as a reference for the configuration of those two logging platforms.
The actual logging platform must be provided by the user via a dependency management system. Since the investigation of possible SDK issues relies on the logs generated by the SDK, the users are encouraged to keep the logs for longer periods and have them configured to log as much information as possible (especially during the integration)
SDK logs data to multiple files and different levels can be assigned to different loggers.
Execution log: contains log entries providing information on the SDK flow for a given moment
Interaction log: logs the user interaction with the SDK. This includes when a key method on an SDK's public interface is invoked or when a message is dispatched to the user.
Rest traffic: logs all requests to the Sports API and the associated responses. This can produce a lot of log entries so the users are encouraged to decrease the level once in production
Feed traffic: logs all messages received from the AMQP broker. This can produce a lot of log entries so the users are encouraged to decrease the level once in production
Traffic failure: Logs the messages which could not be dispatched to the user.
Last updated
Was this helpful?