Browse by Tags

Loading the assembly for a custom log4net appender
As I described recently, I have built a custom appender that inherits from SmtpAppender but supports SSL sending using .NET 2.0. However, when I configure my web application to use it, I get an error that: log4net:ERROR XmlHierarchyConfigurator: Could...
A log4net appender that uses SmtpClient
Google Apps provides free email hosting for small businesses. However, their SMTP server requires SSL authentication for sending outbound emails, so you can't use use log4net to send emails based on the content of logged messages. Ron Grabowski suggested...
A realistic log4net config
Most log4net config file examples show the simplest case. Here is a more realistic example of a production log4net config that uses multiple appenders. This comes from an ASP.NET application, but the same technique will work in a server or client application...
More Posts