Re: using of system properties in subject of SMTPAppender

2011-05-26 Thread Jacob Kjome
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

RE: [SCL-3] using of system properties in subject of SMTPAppender

2011-05-25 Thread Zbynek Vavros
--| |> | Subject: | |> >--------------------------| |

RE: [SCL-3] using of system properties in subject of SMTPAppender

2011-05-25 Thread Zbynek Vavros
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

Re: using of system properties in subject of SMTPAppender

2011-05-24 Thread Curt Arnold
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

RE: [SCL-3] using of system properties in subject of SMTPAppender

2011-05-24 Thread Bender Heri
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]

using of system properties in subject of SMTPAppender

2011-05-23 Thread Zbynek Vavros
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