Adding Logger Utility Class

To debug the adapters, use com.mashery.trafficmanager.debug.Logger, a new utility class. This logs "debug"," info","warn", and "error log" statements.

Example statement
com.mashery.trafficmanager.debug.Logger.info(MyAdapter.class,"Info statement for request param {} and value {},paramName, paramValue)

Procedure

  • In the adapter class, add:
    com.mashery.trafficmanager.debug.Logger.info(MyAdapter.class,"Info statement for request param {} and value {},paramName, paramValue)
    
    Note: Use parameterized messages patterns instead of concatenating variables to the message.