Win a copy of Emmy in the Key of Code this week in the General Computing 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Help Please

 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am working on an Enterprise application with WAS AE 4.0
My application, we use a log file, myapp.log file for logging in all the erros and debug statements.
Right now the log file remains in the system and what ever we do the testing log will be appended to the existing log file.
My intention is to get an empty log file created when I start the application server.
Where can I specify this ?
Thanks
Maya
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where to write about deleteting all the log file data depends on how u start ur application server.
1. suppose if u have given option for auto startup when u rebot ur machine then u have to write a batch file to empty log file ,and u have to give it at the startup so that this will also execute when u reboot ur machine.
2. if u start ur appserver using startup batch command option of app server then in that batch file only u spesify command to empty the file or u execute a programe there only
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you clean up the file when you initialize your log file? Are you using log4j?
 
Seriously? That's what you're going with? I prefer this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!