This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Use Deployment Plan to Change Location of Application Logging  RSS feed

Saloon Keeper
Posts: 2476
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want use a deployment plan to be able to change the locations of the log files to something other than what is configured in the log4j2.xml file.

I've started with just trying to change the filename for the application-log appender, but it doesn't have effect when I deploy on a WebLogic server, and I find that log4j still uses the specification in the xml config file.  I have not worked with deployment plans before, so I'm sure I'm doing something wrong.  These are the bits of the Plan.xml file which I am expecting to change the location where the application-log file is written:
I wasn't too sure on what to use as the <root-element>, so I used the root element of the log4j config file.

Any suggestions on what I might be missing?

Internal Structure of xcma.war
Application Root Structure
Ranch Hand
Posts: 351
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done something similar chaging weblogic.xml :

Maybe you are missing tag  
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've the same problem?

Have you solved it?

roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
global solutions you can do at home or in your backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!