logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pantichd <panti...@firstenergycorp.com>
Subject Re: Can't figure out how to change email appender subject dynamically
Date Wed, 11 Oct 2006 11:33:12 GMT

Maarten,

That was it!

Calling appender.activateOptions(); did the trick. 

Thanks SO much!

David.

Maarten Bosteels-4 wrote:
> 
> I haven't tried it, but maybe it helps to call activateOptions()
> 
> Like this:
> 
> appender.setSubject(currEnv.toUpperCase()+": "+appender.getSubject());
> appender.activateOptions()
> 
> Maarten
> 
> 

-- 
View this message in context: http://www.nabble.com/Can%27t-figure-out-how-to-change-email-appender-subject-dynamically-tf2416386.html#a6754657
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message