• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Log4J Issue

 
Greenhorn
Posts: 14
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic