Howdy,
You need to access the SMTPAppender object and call its methods to
dynamically change the properties like the subject line.
How are you configuring log4j? If you know the name of the
SMTPAppender, e.g. EmailAppender this is pretty easy. In your class,
you would do something like:
: Tuesday, November 18, 2003 8:50 AM
To: Log4J Users List
Subject: RE: SMTP log4j question
Howdy,
You need to access the SMTPAppender object and call its methods to
dynamically change the properties like the subject line.
How are you configuring log4j? If you know the name of the
SMTPAppender, e.g
To: 'Log4J Users List'
Subject: RE: SMTP log4j question
Here is a snippet of my properties file. I actually set up many files
so I
only included the root and SMTP appender.
# This configuration illustrates filtering by logger name.
log4j.debug=false
log4j.rootLogger=DEBUG, ROOT
log4j.appender.ROOT