mambu-gmbh / Mambu-APIs-Java

Java Library for working with the Mambu APIs
https://www.mambu.com
Apache License 2.0
29 stars 33 forks source link

Get logs from the library #166

Closed azakordonets closed 6 years ago

azakordonets commented 6 years ago

Hi, i would like to log all the calls that are made by your library in my integration tests - what is the best way to do that? Right now, when i try to make some calls with library - i don't see any logging in the console. Is there a way i could intercept logs and append it to my logger ?

acostros commented 6 years ago

Hi Andrew,

The simplest way that comes into my mind right now to view the logs from SDK is to override the log level for the following classes MambuAPIFactory, RequestExecutorImpl, URLHelper using java util logging. In the project you forked from Github you can see inside logger.properties the description for each class.

azakordonets commented 6 years ago

Thanks, will try that out and let you know what came out of this

azakordonets commented 6 years ago

Ended up making up my custom logic on logging of the request\response object.