To solve this I'm using a custom log4j.xml (with debugs enabled) and run
my app with
-Dlog4j.configuration=file:///D:/log4j.xml
Using this, I can configure log4j for production and have all the debugs
I need on my dev computer.
James Stauffer a écrit :
Can you keep the config file out of the deployment?
On 4/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello,
I'm fairly new to log4j so please excuse me if I'm asking a question that's
really basic. I've searched the archives but I haven't found something that
applies to my specific question.
Is there a way to make log4j "environment aware"? By that I mean that it
would print debug messages if running on development but only error or
fatal messages on production.
I've seen some messages that suggest creating separate log4j.properties
files for each environment. That would be a little difficult in our
environment. We are using SAP's Netweaver platform and it's "transport"
process. Once you've deployed your app to development there is no way to
modify the deployment before it goes to production. The only way would be
to manually go into the production server AFTER the deployment and change
the log4j.properties file. Obviously, that is undesirable!
Thanks in advance for any help.
David
-----------------------------------------
The information contained in this message is intended only for the
personal and confidential use of the recipient(s) named above. If
the reader of this message is not the intended recipient or an
agent responsible for delivering it to the intended recipient, you
are hereby notified that you have received this document in error
and that any review, dissemination, distribution, or copying of
this message is strictly prohibited. If you have received this
communication in error, please notify us immediately, and delete
the original message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
James Stauffer
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]
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]