• 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

Servlet log method

 
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
There is a mehtod in the GenericServlet class has a log method
void log(java.lang.String msg)
void log(java.lang.String message, java.lang.Throwable t)
It says that it will write the output to the servlet log file.I am currently using netbeans.Where can find this Servlet's log file
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably nowhere unless you define where to output the content.

For example, you can use the Jakarta's common-logging facility and tell where the output is going to be. For example, using SimpleLog will send all messages to System.err, which you can pick up in your container's output files.
That doesn't sound very clear, does it ? You should read something about logging : http://jakarta.apache.org/commons/logging/guide.html
reply
    Bookmark Topic Watch Topic
  • New Topic