----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Thanks Viehl,

But that doesn't quite answer my question.  Besides, according to the api
documentation, there is no empty constructor for
org.apache.java.io.LogWriter.

Let me rephrase the question... I may have been too vague in my first
posting.

I want to get a handle to a LogWriter so that I can log my error messages
and debug info from my servlets.  Do I have to construct one myself?  If so,
where do I get the Configurations?  Or is there and accessor somewhere to
get a handle to a LogWriter that I can use?

Sample code would be ideal.

thanks,
-Duck Jin


----- Original Message -----
From: Viehl Clemens <[EMAIL PROTECTED]>
To: 'Java Apache Users Mailingliste'
<[EMAIL PROTECTED]>
Sent: Monday, February 14, 2000 4:21 AM
Subject: Re: constructing org.apache.java.io.LogWriter?


> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hello!
>
> There is no problem when there are same classes in different packages.
What
> do you think packages are for?
>
> Just type:
> org.apache.java.io.Logwriter logWriter = new org.apache.java.io.Logwriter
> ();
>
> You can qualify a class by giving the full package path. You have to do so
> by most classes if you wouldn't have many import statements at the
beginnig
> of your code.
>
> Hope this helps.
>
> Regards
>
> Clemens Viehl
> >
> > I'm interested in using the org.apache.java.io.LogWriter
> > class to log all my
> > servlet debug info and exception messages.
> >
> > But it seems that you need to construct the LogWriter with an
> > org.apache.java.util.Configurations.
> >
> > Does anyone know how I can get the Configurations to
> > construct my LogWriter?
> >
> > thanks,
> > -Duck Jin
> >
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



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

Reply via email to