You might be interested in the "it.openutils.log4j.AlternateSMTPAppender"
[1]. It allows for dynamic subjects and more. Note that I am not affiliated
with this project. I just found it to be useful.
[1] http://www.openmindlab.com/lab/tools/openutilslog4j/smtp.html
Jake
On Mon, 23 May
--|
|>
| Subject: |
|>
>--------------------------|
|
reference this value with the layout pattern %X
{CUSTOMER}.
Do not forget to remove the value when session terminates!
Heri
> -Original Message-
> From: Zbynek Vavros [mailto:zbynek_vav...@cz.ibm.com]
> Sent: Monday, May 23, 2011 4:18 PM
> To: log4j-user@logging.apache.org
> Subj
If it can be in the body of the email, then there are many ways that you could
customize the rendering of the message. Since it appears to be a very low
frequency occurrence, you could do something like:
if(logger.isErrorEnabled())
{
string msg = "Client " + clienName + " encountered unexpe
e with the layout pattern
%X{CUSTOMER}.
Do not forget to remove the value when session terminates!
Heri
> -Original Message-
> From: Zbynek Vavros [mailto:zbynek_vav...@cz.ibm.com]
> Sent: Monday, May 23, 2011 4:18 PM
> To: log4j-user@logging.apache.org
> Subject: [SCL-3]
Hi,
I have a 1 server app and many clients app on different servers.
Obviously I wanted to know from which server the email comes, so I used
this:
log4j.xml
and since system property has to