James Stauffer wrote:
>
> Have you tried setting the subject in the config file with a system
> property?
> log4j.appender.EMAIL.Subject=Fatal error encountered on
> ${currentEnvironment}
>
> You may only be able to do that with XML config.
>
>
James,
Thanks for your quick reply.
The "current environment" value that I refer to is something I dynamically
derive in my code based on several variables. It's not a static environment
variable.
Having said that, a few questions come to mind:
1) What kind of system properties are available to me?
2) Can I programatically set a system property?
3) I am still using *.properties files for my configuration settings. What's
involved in switching to use XML files? Is it just a matter of switching to
an XML file or does it also require coding changes?
Thanks again!
David.
--
View this message in context:
http://www.nabble.com/Can%27t-figure-out-how-to-change-email-appender-subject-dynamically-tf2416386.html#a6739236
Sent from the Log4j - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]