logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Grabowski <rongrabow...@yahoo.com>
Subject Re: Which context should I use?
Date Fri, 01 Jul 2005 01:47:20 GMT
You will not have problems:

"
Thread Safety
 This type is safe for multithreaded operations.
"

You may have issues if you're using a IHttpHandlers marked as reusable.

--- Weston Weems <wweems@gmail.com> wrote:

> Uhh... I'll do all the reading, but will I have problems because this
> will be classess accessed from a webapp at all?
> 
> 
> 
> On 6/30/05, Ron Grabowski <rongrabowski@yahoo.com> wrote:
> > Have you looked into using the ThreadConext:
> > 
> > http://tinyurl.com/ck7ve
> >
>
http://logging.apache.org/log4net/release/sdk/log4net.ThreadContext.html
> > 
> > --- Weston Weems <wweems@gmail.com> wrote:
> > 
> > > I've got a few logging routines that are going to only store info
> > > pertinent to that exact application event...
> > >
> > > Eg, login failed event will need username the person typed in
> etc...
> > > but dont want that value to be in global context.
> > >
> > > What would be the best method... to use log4net.core.LoggingEvent
> > > context? And documentation says:
> > >
> > > %property{name} syntax in the layoutpattern, except whats the
> > > property
> > > and whats the name?
> > >
> > > Sorry for sounding like a newb, I'm trying to ask intelligent,
> > > researched questions
> > >
> > > Thanks
> > > Weston
> > >
> > 
> >
> 


Mime
View raw message