I love the project and am glad to see the new features added to logging in general.
I am willing to write a patch for a feature but before I do I want to make sure it is something you would be interested in.
There is no way to get a stack trace when using paramterized logging. The patch I want to add is that if the last parameter is a Throwable then it gets passed to the fitlerAndLog() method as a thorable (instead of throwable being null).
To explain in code.
log.debug( "Something happened parm1={} parm2={} parm3={}", 1, 2, 3, new Throwable() );
This would not cause the Throwable to be logged. So here are my questions
- if I added the code to ch.qos.logback.classic.Logger is that something you are interested in?
- lacking that any recommendations on how to get this feature built in.
Looking forward to your comments and thanks for the great work on a great logging framework...
regards,
Glen