It's not a secret anymore!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Servlet log method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Servlet log method" Watch "Servlet log method" New topic
Author

Servlet log method

Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 361
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


SCJP, SCJD,SCWCD,SCDJWS,SCEA 5 MCP-C#, MCP-ASP.NET - http://www.khaledinho.com/
Life is the biggest school
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet log method
 
Similar Threads
Unable to Start Persistent Name Server in VAJ
log method of servlet context
GenericServlet
about log() of GenericServlet
Where can I find my log files??