Thank you a ton for the hint Niels and Ceki

I've added support to LocationAwareLogger and now slf4j-fluent logs the correct calling class name info

I've just deployed the new version, 0.9.0, which will be available on maven central as soon as they sync their servers

cheers

federico

niels ha scritto il 15/02/19 alle 21:07:
See the message from Ceki
"
Hello Niels,

I am following up on our discussion on stackoverflow.

Since logback-classic exposes its API via SLF4J, you would probably
want to extend org.slf4j.Logger. See the org.slf4j.ext package for
extension examples. The org.slf4j.ext.LoggerWrapper [1] class should
be particularly helpful. See also XLogger [2] and XLoggerFactory [3]
in the same package. The key here is to invoke LocationAwareLogger
when you can, i.e. when one of log4j, jul and logback is the
backend. That is as easy as:
_______________________________________________
slf4j-user mailing list
slf4j-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/slf4j-user

Reply via email to