We are currently using the log4net appender (web.config snippet):
<appender name="FileAppender" type="log4net.Appender.RollingFileAppender">
Looking for experience using other appenders.
We are currently using the log4net appender (web.config snippet):
<appender name="FileAppender" type="log4net.Appender.RollingFileAppender">
Looking for experience using other appenders.
We use SmtpAppender
for ERROR and FATAL levels to "mail home" exception reports. Also ConsoleAppender
when running a Windows Service in a console.
For FileAppender
we set <staticLogFileName value="false" />
to avoid an ever-increasing delay when rolling over to a new file and the folder contains lots of files.
We're also using the SmtpAppender to log fatal errors and send back the exception reports, though this is used in conjunction with a custom error handler, which also sends an email with a bit more information such as page url, session variables, request values, etc (as the SmtpAppender only sends some of the log and the exception details).
For file-based logging, we're using the RollingFileAppender, and having it generate a new log file for each day, to avoid ending up with huge log files.
For console applications, we're using the ColoredConsoleAppender.
I've seen some web applications using the AdoNetAppender, but avoid using it personally as I'm not sure how good the performance would be, though it could be a good idea to log error and fatal messages to the database (which would be less often than debug messages).