[logback-user] Logback ClassOfCallerConverter failure for org.slf4j.ext.LoggerWrapper descendants
ceki at qos.ch
Sun Mar 8 10:29:00 CET 2015
The list of framework boundaries can be adjusted by invoking
context.getFrameworkPackages().add("package of your choice");
where context can be obtained by
LoggerContext context = (LoggerContext)
Let us know if this works for you.
On 3/7/2015 13:05, USHAKOV, Sergey wrote:
> I have currently come across an issue that if a
> org.slf4j.ext.LoggerWrapper subclass is used as logger in combination
> with Logback, then any logging methods inherited from it are prevented
> from location information being logged: class, method and line number
> are all replaced with question marks. Only methods overridden by a
> subclass are logged correctly.
> The reason seems to be that
> method only recognizes "org.slf4j.Logger" and
> "org.apache.log4j.Category" as appropriate stack trace delimiters, and
> "org.slf4j.ext.LoggerWrapper" fails to be recognized.
> My guess is that "org.slf4j.ext.LoggerWrapper" should be allowed to
> serve as stack trace delimiter somehow, be it explicitly by class name
> or implicitly by package name, or any other way...
> Does it look like a minor bug in Logback with respect to LoggerWrapper?
> Or if I am mistaken, please advise of any other appropriate way to get
> location information from org.slf4j.ext.LoggerWrapper ...
> Thanks and best regards,
> Logback-user mailing list
> Logback-user at qos.ch
More information about the Logback-user