I just solved it. I was just too dumb to see the error in my code.
If anyone is interested: I was logging the same information twice: at the
beginning of the loop and at the end of the loop. Depending on some variable I
had a "continue;" statement in the middle. Obviously it run the "continue;"
Günther, Rene - Innflow AG wrote:
> The first appends a line in my logfile, the second call of debug doesn’t
> append anything.
>
> Any idea where to look at?
>
What does the third statement do?
If this is the last statement you are expecting and depending on your
appender it could be buffere
I got a problem with using log4j. In my class I define the log like this:
protected static final Log log =
LogFactory.getLog(NewDocumentsArrivedJob.class);
One of my calls look like this:
log.debug("Send email to " + user.getUsername()+ " use language " +
user.getLocale().getLocale());