Help coderanch get a
new server
by contributing to the fundraiser
  • 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

Application Log Files

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In development of our web application there is an
application log file that is created.
In the beginning we put it in
WEB-INF/logs since this was relative to our webapp top directory.
it was easy to find . On weblogic this did not work too well.
When we deployed the directory structure was not expanded.
When we deploy as an expanded it gets copied into the .wl_do_notDelete_blah blah blah directory.
So the question is in the BEA weblogic world where is a standard place to put our logs. Is there a general well know place on a Unix box.
Maybe /var/logs maybe someplace else.
What are other people doing with their own log files.
Thanks in advance
 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The domain directory is a good place, I think. We usually create a <domaindir>/logs directory and put server logs and stuff in there.
For application logs, the domain directory is the current working directory when you start the server, so new File("logs/myApp.log") should get you there.
Another alternative is to use weblogic.logging.NonCatalogLogger to log to the server log file.
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic