Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
1.0.0
-
None
-
None
Description
As shown in the attached project, we are logging using Logback classic through a wrapper class (LogHelper), with formatting specified by the %caller format specifier. Instead of showing the desired actual caller of the LogHelper.debug() method, the output shows as the caller, the caller of the caller of the logHelper.
I'm expecting:
2011-11-06 18:49:59,650 DEBUG [main] Caller+0 at org.javactivity.A.<init>(A.java:8)
- Constructor of A
2011-11-06 18:49:59,654 DEBUG [main] Caller+0 at org.javactivity.B.<init>(B.java:7) - Constructor of B
Instead I get:
2011-11-06 18:49:59,650 DEBUG [main] ?#?:?
- Constructor of A
2011-11-06 18:49:59,654 DEBUG [main] Caller+0 at org.javactivity.A.<init>(A.java:9) - Constructor of B