Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

log4j have to retrieve a JVM environment variable that point to application log  RSS feed

Kaustubh Roy Chowdhury
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

We are using log4j in our WebApplication that is deployed on a WebLogic Server on Linux Platform. We have to log all our log statements into a path like this /work/<domainName>/servers/<JVMname>/logs/pgms-01.stdout that would be stored in JVM environment variable

Can you please guide me how to make the settings in Weblogic/Application and also how to modify the log4j.xml so that it can make all the log in the above specified path.

Thanks and Regards, Kaustubh.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!