The most direct way for us to help is for you to post your log4net
config file and a few lines (please don't past the entire class if its
large!) of how you are configurating log4net and how you are calling
it. I've asked for some code samples in my original response and you
still haven't provided any. Its difficult to help when all you've said
is "please help, something is broke".

If you think there is something wrong with the website, you may want to
post an issue here:

 http://issues.apache.org/jira/browse/log4net

A typical application calls this as part of its startup routine:

 log4net.Config.DOMConfigurator.Configure()

Each class that uses a logger should have code like this at the top of
it:

Private Shared ReadOnly log As log4net.ILog =
log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)

To write things to the log, use this:

 If (log.IsDebugEnabled) Then
  log.Debug("Hello World")
 End If

There are sample log4net config files in the download I link I posted
before. If you are having problems with the FileAppender it is most
likely due to file permissions and not something wrong with log4net. I
suggest writing a small console test app that uses the Console appender
to output information then move on from there.

- Ron

--- "Castro, Yvette" <[EMAIL PROTECTED]> wrote:
> ...\examples\net\1.0\Repository\SimpleApp\vb doesn't exist neither in
> the download nor online.
> 
> I'm trying to see how it is suppose to work and I can't find any
> documentation.
> 
> vr, Yvette
> 
> 
> 
> -----Original Message-----
> From: Ron Grabowski [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 14, 2005 12:24 PM
> To: Log4NET User
> Subject: RE: need help starting up
> 
> The most recent download of log4net:
> 
>  http://logging.apache.org/log4net/downloads.html
> 
> includes sample applications.
> 
> - Ron
> 
> --- "Castro, Yvette" <[EMAIL PROTECTED]> wrote:
> > The link to the tutorial for the simple app is not available.  The
> > link
> > is as follows:
> > 
> > http://logging.apache.org/examples/net/1.0/Repository/SimpleApp/vb
> > 
> > If I can get this to work, then I may be able to see where my code
> is
> > going wrong.
> > 
> > Any help will be appreciated.
> > 
> > vr, Yvette
> > 
> > -----Original Message-----
> > From: Ron Grabowski [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, April 14, 2005 11:41 AM
> > To: Log4NET User
> > Subject: Re: need help starting up
> > 
> > The log4net website contains example applications:
> > 
> >  http://logging.apache.org/log4net/release/example-apps.html
> > 
> > Its difficult for us to help unless you post your config files or
> > some
> > (not all) of your code...
> > 
> > - Ron
> > 
> > --- "Castro, Yvette" <[EMAIL PROTECTED]> wrote:
> > > I'm having problems with learning how to use Log4net.  I am
> trying
> > to
> > > build a class that I can tack on to multiple codes so that I can
> > > monitor
> > > there usage.  I am at the point that I can start it up, but it
> > > doesn't
> > > record any other information.  When I get out of my program and
> go
> > > back
> > > in, the log doesn't append, it just restarts.
> > > 
> > >  
> > > 
> > > Any help will be highly appreciated.
> > > 
> > >  
> > > 
> > > A tutorial, a sample code, anything.
> > > 
> > >  
> > > 
> > > Thank you in advance.
> > > 
> > >  
> > > 
> > > vr, Yvette
> > > 
> > > 
> > 
> > 
> > 
> 
> 
> 

Reply via email to