• 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

Tomcat's log

 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to do the following inside a doFilter() of a filter:




But the logs directory is just empty. Nothing is printed to there.

I am running the app on a remote Tomcat server. Did they change anything in the defualt log definitions and do you know how I can change it back?
[ May 01, 2005: Message edited by: Joseph Sweet ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by "they" - your hosting company?

You might want to look into using log4j with your app.
It's very easy to get set up and you will have a lot more control over your logging.
 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your response.

Yes "they" means the hosting company. I have been told in this forum that the log are supposed to be created in the Tomcat's logs directory. But nothing is written to there. The directory is empty.



Where is it defined to Tomcat where to write the output of that log method? Is it defined somehere in the web.xml?

Regarding log4j - yes I will try it too, but could you help me with doing it in the first way.
[ May 02, 2005: Message edited by: Joseph Sweet ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on how they're configuring it.
With 5.0 and older, you could configure this in server.xml (which you probably don't have access to). If they are using a logging package such as log4j the system wide config file is probably in common/classes.

I would start by asking your hosting company where the log is and if you can have access to it. If they've got all of their customers writing to one big log, they probably won't give you access to it (rightly so). You might also ask them if you can install log4j and get write permissions to a directory so you can have your own log file.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic