is there a way to work with a logging framework?
rbautisf opened this issue · 2 comments
Summary
Hi,
I'm using the java sdk in a kotlin spring project, and I was wondering if is there a way to be able to use a logging framework within the sdk, at the moment the logback is not able to format the messages from the AmplitudeLog, or maybe if it's possible to add the AmplitudeLog as a parameter in the constructor to pass a custom AmplitudeLog that implements the logging.
Hi @rbautisf , Thanks for submitting the request. I'll work on this new feature and update here once finished.
Hi @rbautisf , please check our new 1.10.0 version. A setLogger() interface was added to Amplitude client. Inherit AmplitudeLog class and override log() method to customize format and use logging framework. Then set logger with the new interface. If you have any other questions please let me know. Thank you for the helpful feedback.