• 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

Help Please

 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can't you clean up the file when you initialize your log file? Are you using log4j?
reply
    Bookmark Topic Watch Topic
  • New Topic