There are a number of predefined appender types, from file and console appenders to telnet, database, and even e-mail. If there isn't a predefined appender that meets your needs, then you can write your own (as log4net is an extensible framework) and make it work any way that you like! I recently saw an appender that creates entries on the popular microblogging website Twitter.
Defining an appender is as simple as adding it to the configuration and telling log4net to write to it. If we wanted to log to a file, for example, we could use the Rolling File appender. I use the Rolling File appender all the time because you can configure it to rotate logs on a daily or size basis, along with numerous other options.
To define a Rolling File appender that will create a new log every day, we could use the following code:
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> <file value="logfile" /> <appendToFile value="true" /> <rollingStyle...