Yes.

On 10/10/06, pantichd <[EMAIL PROTECTED]> wrote:

James,

Sorry to be dense! I guess I should have been more specific in my follow-up
questions.

When you say all system properties what does that mean? Is this what you're
talking about?
http://java.sun.com/docs/books/tutorial/essential/environment/sysprop.html


James Stauffer wrote:
>
> 1) All system properties.
> 2) Yes.  System.setProperty (but you have to do it before configuration
> 3) No code change needed if you use automatic config (log4j looks for
> an xml file before looking for a properties file).
>
> On 10/10/06, pantichd <[EMAIL PROTECTED]> wrote:
>>
>>
>> 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]
>>
>>
>
>
> --
> James Stauffer        http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to