| Author |
Log4J Issue
|
harbir hundal
Greenhorn
Joined: May 07, 2011
Posts: 14
|
|
Hi Guys,
I am trying to configure the loggin to my web application.
This is where I want my application to put the logs:
If I do the following in the log4J.properties, the logs are created fine:
I have an environment variable
And when I do like following in the log4J.properties, it not working.
Can someone please help me, I want to use JBOSS_HOME, so that its not hardcoded.
I am using JBOSS as a webserver.
Any help will be greatly appreciated.
Regards
Adofo
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8563
|
|
Have you read http://docs.jboss.org/process-guide/en/html/logging.html
I will move this topic over to the JBoss forum, where you stand a better chance of getting your question answered.
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8208
|
|
harbir hundal wrote:
If I do the following in the log4J.properties, the logs are created fine:
I have an environment variable
And when I do like following in the log4J.properties, it not working.
JBoss AS sets certain system properties which you can use here. For pointing to the log folder of the server, you can use:
Also, see this blog for an example.
|
[My Blog] [JavaRanch Journal]
|
 |
 |
|
|
subject: Log4J Issue
|
|
|