logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Günther, Rene - Innflow AG" <rene.guent...@innflow.com>
Subject WG: Only partial logging with log.debug
Date Sun, 02 Aug 2009 12:40:00 GMT
I got a problem with using log4j. In my class I define the log like this:


protected static final Log log =


One of my calls look like this:


log.debug("Send email to " + user.getUsername()+ " use language " +

log.debug("Using template " + templateName.trim());


The first appends a line in my logfile, the second call of debug doesn’t
append anything. In that class some of log.debug calls are ignored. 

I thought, hmm, maybe the compiling doesn’t work, but I also changed
existing working log.debug statements (to log something slightly different)
and this change got compiled and I saw the change in my log file.


Any idea where to look at?





  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message