• 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 ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Use Deployment Plan to Change Location of Application Logging  RSS feed

 
Saloon Keeper
Posts: 2566
323
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 12.2.1.3 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?


log4j2.xml
Plan.xml
Internal Structure of xcma.war
Application Root Structure
 
Ranch Hand
Posts: 352
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done something similar chaging weblogic.xml :
http://devwebcl.blogspot.cl/2018/03/changing-weblogicxml-at-deployment-time.html

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

Have you solved it?

Thanks
 
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!