Log messages
You can use a typical logging pattern based on the Apache Commons logging framework to log messages from your adapter, token translator, or custom data source driver.
The service provider (SP) adapter contained in the directory sdk/adapters-src/sp-adapter-example
shows how to use a logger for your adapter.