Hi,
With System.out.println(msg),it gets printed on to the console window.
Hope this helps.
--
RAVIKUMAR CHENGALVALA
[EMAIL PROTECTED] - email
(858) 860-6400 x7011 - voicemail/fax
---- Mohammed Akacem <[EMAIL PROTECTED]> wrote:
> Hi Zahid,
>
> I tried what you suggested me in vain.
> I added the following to the SnoopServlet example in Tomcat:
>
> getServletContext().log(" this is a test to see if I can log");
> System.err.println(" I am in snoop servlet");
> System.out.println(" I am in Snoop");
> PrintWriter out = response.getWriter();
> response.setContentType("text/plain");
> code//....
>
> Mohammed
>
> "Rahman, Zahid" schrieb:
>
> > Hi Mohammed Akacem,
> > Ans 1. If you are sure your message is being printed some where
> > using
> > System.out.println....
> > then I suggest you use the NT explorer tools/find/advance option
> to look for
> > the message
> > in a chosen directory structure and the explorer should list the
> file
> > containing the message.
> >
> > Ans 2.
> > Also Don't take my word for this because it works in a another development
> > tools so it may be specific to that tool.
> > In a servlet
> > you should use
> > System.err.println("msg");
> > then if you use the personal webserver the message comes up in the
> DOS
> > window
> >
> > Regards,
> > Zahid
> >
> > > -----Original Message-----
> > > From: Mohammed Akacem [SMTP:[EMAIL PROTECTED]]
> > > Sent: Wednesday, November 15, 2000 12:19 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: log()
> > >
> > > Hi,
> > >
> > > platform: NT 4.0 , apache 1.3.14, tomcat.
> > >
> > > I tried to log message in my servlet with log(my message). but
> I did't
> > > find this message in the log file of Apache.
> > > I tried olso a System.out.println("msg").und I have no idea where
> my msg
> > > is being printed out .
> > >
> > > please help
> > >
> > > Mohammed
> > >
> > > __________________________________________________________________________
> > > _
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the
> > > body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources: http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> > ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html