log4net works synchronously and in general this will be the most
performant option. Appenders that talk over the network can introduce
high latencies and for these some form of asynchronous processing may be
more appropriate.
The costs associated with an appender are not incurred if the appender
log4net is thread safe as it says in the FAQ.
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 acces
I also have the same question. Thanks for bringing this up. It was my
understanding that log4net was threadsafe. Please clarify.
Thanks,
Ramesh
Loggers can only have one level. If you need to have more control over
the logging performed by an appender you can set its level.
If that is not sufficient you can attach several different filters to
the appender that determine if the event should be output, you can even
write your own filters.
h
If you DLL is part of an application that is not using log4net or if you
want the configuration for you assembly to be loaded from a different
config file to that for the rest of the application, you need create a
separate logging Repository for your assembly (DLL).
If you want to configure log4ne
I need to use the RollingFileAppender in a multi-threaded application. The
documentation is a
little confusing when it comes to thread safety. The general FAQ says log4net
is thread-safe, but
the appender's documentation says it's not.
Does anyone have any suggestions on how to use the Rolling
Ramesh,
The overloaded XmlConfigurator.Configure method maybe what you need,
one of the overloads takes a FileInfo.
http://logging.apache.org/log4net/release/sdk/index.html
If your dll is running in the same AppDomain as the exe that is
using it, you may run into problems as the EXE wil
Hello,
I want to log messages from a class library(dll).This dll is called by a
third party application on which I have no control. In other words, I cannot
make the third party application read a app.config file.
A dll by its very nature does not allow loading of app.config file. I am
also
Hi,
I need some help.
1) I
want to configure log level for Log4net.MainForm logger in the following maner:
root>
logg