5 Replies Latest reply on Oct 9, 2006 5:24 PM by jpi jpi

    [log4j] SMTPAppender with more than one line per email

    Peter Goetz Newbie

      Hi there,

      I have a little question concerning log4j. I configured the SMTPAppender in log4j.xml and it works so far. Unfortunately I get an email for every line of error message. Reading the doco I saw that this is the default and correct behaviour. Now the question: Is it possible to change this behaviour? I would like to get one email per exception.
      My first thought was to create an Evaluator class, but I didn't know where to start.
      Any help is very appreciated!

      Thank you very much and have a nice weekend!!

      Peter