logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Sorensen" <bsoren...@idtdna.com>
Subject AppenderSkeleton not thread safe
Date Fri, 12 May 2006 20:06:44 GMT
Since the AppenderSkeleton class is not thread-safe (per the SDK
reference), none of the appenders are thread-safe - even ones like
EventLogAppender.

According to Nicko Cadell,

> How log4net implements this with regards to individual appenders is
not
> really important. The docs for the RollingFileAppender are correct,
the
> members of the type are not thread safe, but this is not relevant
unless
> you want to programmatically access the appender directly from you
code.
> During logging the appender's base class (AppenderSkeleton) ensures
> serialisation of appending of logging events.

So what synchronization concerns are there in configuring and logging to
log4net from a multithreaded application?

Thank you,
Bill Sorensen

Mime
View raw message