• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

code on pg 675

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please code on pg 675

the log( ) method that is used in the code,
can some one tell me the API where the log( ) method is located

and also, where the information is logged , i mean in which directory ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't have the book, so I can't tell for sure, but I guess that they are using Java's logging API (http://www.onjava.com/pub/a/onjava/2002/06/19/log.html) or maybe log4j.
 
Imran Vohra
Ranch Hand
Posts: 77
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its using ServletContext.log(String) API.
I am not sure about the location, where it will be logged.
Can anyone please tell us ?

Thanks
Imran
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the API, the name and type of the servlet log file is specific to the servlet container.
About Tomcat's way of logging, you can refer to the docs:
http://tomcat.apache.org/tomcat-5.5-doc/logging.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic