Display tenant identifier in the logs produced by multi-tenant plugins?

4 views
Skip to first unread message

Benjamin Gandon

unread,
Jan 14, 2016, 8:12:23 AM1/14/16
to Kill Bill developers mailing-list
Hi,

Currently debugging the simple-tax plugin, I need to improve the logging of it
The log messages produced by OSGIKillbillLogService are plainly written without any pretty format like timestamp, etc.

Where could I customize the format for these log messages?

When a multi-tenant plugin complains about configuration issue, it should definitely include the tenant ID!
How could I include this ID?
Is it possible to it automatically with a well crafted log format?

Cheers,
Benjamin

Pierre-Alexandre Meyer

unread,
Jan 14, 2016, 11:13:49 AM1/14/16
to Benjamin Gandon, Kill Bill developers mailing-list
Hi Benjamin,

OSGIKillbillLogService should delegate to the main Kill Bill logger. Make sure to follow the setup steps at the bottom of https://github.com/killbill/killbill/wiki/Logback-recipes if it's not the case.

As far as automatically including the tenant id, you can probably add this functionality by writing a custom Logback converter.

--
You received this message because you are subscribed to the Google Groups "Kill Bill developers mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-d...@googlegroups.com.
To post to this group, send email to killbil...@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-dev/89647df2-cd97-44ba-b050-381a21c9d0b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Pierre
Reply all
Reply to author
Forward
0 new messages