Yep got all the jserv.properties stuff set.  I have a feeling it is in the
way I am trying to access log().  Is the example code I have below correct?
 Could someone post a sample script that they use for simple message logging?

Using Apache 1.3.6, JServ 1.0 final and JSDK 2.0


-Eric


At 02:26 PM 6/16/99 -0500, you wrote:
>Eric,
>
>> Does anyone have a means for logging to messages to the jserv.log file.
>> 
>> As I understand it:
>> HttpServlet extends GenericServlet which implements ServletConfig which has
>> getServletContext() which has log().
>> 
>> my init method is the following and my JServ logging uses jserv.log:
>> 
>> public void init(ServletConfig sc) throws ServletException
>> {
>>    super.init(sc);
>>    sc.getServletContext().log("Initializing Servlet...");
>> }
>> 
>> When I run the servlet I cant get any logging.
>> 
>> Can anyone help on this one???
>
>Do you have the following somewhere in your jserv.properties file?
>
>    log=true
>    log.file=/var/tmp/jserv.log (or wherever you want the log to go)
>    log.channel.servletLog=true
>
>Robert
>------
>Robert T. Merrill     Software Engineer |  [EMAIL PROTECTED]
>Berbee Information Networks Corporation |  (608) 288-3000x1608
>5520 Research Park Dr.                  |  fax   288-3007
>Madison, WI 53711
>
>*** BERBEE - Putting the E in Business ***
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>READ THE FAQ!!!!     <http://java.apache.org/faq/>
>Archives and Other:  <http://java.apache.org/main/mail.html/>
>Problems?:           [EMAIL PROTECTED]
> 
Eric Grace 
Software Developer 
[EMAIL PROTECTED] 

MessageMedia, Inc. - The leading source of e-messaging services for
building customer 
relationships online. 



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to