[logback-dev] Eclipse plugin

Ceki Gulcu ceki at qos.ch
Thu Sep 27 19:46:13 CEST 2007


Vicente and Maarten,

Thank you both for reporting and analyzing this problem. I've created a new 
report in bugzilla [1]. It'll be fixed in the next version of logback.

[1] http://bugzilla.qos.ch/show_bug.cgi?id=100

Vicente Ferrer wrote:
> All right, this is exactly what I think is happening. In fact of that, 
> if you put a call to the toString() method explicitly in the log line, 
> the eclipse plugin works right:
> 
> private Logger log = LoggerFactory.getLogger 
> (TestingLogback.class.getSimpleName());
> 
> Car car = new Car("Mercedes")
> Integer aNumber = new Integer(2);
> log.debug("A correct log line: {}", aNumber);
> log.debug("A failed log line: {}", car.toString()); <--------- 
> toString() method called
> log.debug("This line is unreachable for the logback plugin");
> 
-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch



More information about the logback-dev mailing list