Hi,
I need to add an optional parameter say "Encryption=true" to the
consoleappender in log4j.properties file
and in the Business class I need to check something like

if  (encryption) 
{
logger.debug(encrypt(message)); //encrypt() has the encryption logic.
}

I guess I have to extend consoleappender and have a getter/setter for
encryption property.
Is this a good approach? Or is there any other optimal way of acheiving
this?

Thanks,
lavsara
-- 
View this message in context: 
http://old.nabble.com/log4j---optional-parameter-tp33084256p33084256.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to