blob: 2debd9af53fe34bfa5977db03b10a62a74ee7812 [file] [log] [blame]
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>IAppender Interface</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0</td>
<td class="product">
</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">IAppender Interface</h1>
</div>
</div>
<div id="nstext">
<p> Implement this interface for your own strategies for printing log statements. </p>
<p>For a list of all members of this type, see <a href="log4net.Appender.IAppenderMembers.html">IAppender Members</a>.</p>
<p>
<b>log4net.Appender.IAppender</b>
<br />���<a href="log4net.Appender.IBulkAppender.html">log4net.Appender.IBulkAppender</a></p>
<div class="syntax">
<span class="lang">[Visual�Basic]</span>
<br />Public�Interface�IAppender</div>
<div class="syntax">
<span class="lang">[C#]</span>
<div>public�interface�IAppender</div>
</div>
<h4 class="dtH4">Types that implement IAppender</h4>
<div class="tablediv">
<table class="dtTABLE" cellspacing="0">
<tr valign="top">
<th width="50%">Type</th>
<th width="50%">Description</th>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.AdoNetAppender.html">AdoNetAppender</a>
</td>
<td width="50%"> Appender that logs to a database. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.AnsiColorTerminalAppender.html">AnsiColorTerminalAppender</a>
</td>
<td width="50%"> Appends logging events to the terminal using ANSI color escape sequences. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.AppenderSkeleton.html">AppenderSkeleton</a>
</td>
<td width="50%"> Abstract base class implementation of <a href="log4net.Appender.IAppender.html">IAppender</a>. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.AspNetTraceAppender.html">AspNetTraceAppender</a>
</td>
<td width="50%">
<p> Appends log events to the ASP.NET <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWebTraceContextClassTopic.htm">TraceContext</a> system. </p>
</td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.BufferingAppenderSkeleton.html">BufferingAppenderSkeleton</a>
</td>
<td width="50%"> Abstract base class implementation of <a href="log4net.Appender.IAppender.html">IAppender</a> that buffers events in a fixed size buffer. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.BufferingForwardingAppender.html">BufferingForwardingAppender</a>
</td>
<td width="50%"> Buffers events and then forwards them to attached appenders. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.ColoredConsoleAppender.html">ColoredConsoleAppender</a>
</td>
<td width="50%"> Appends logging events to the console. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.ConsoleAppender.html">ConsoleAppender</a>
</td>
<td width="50%"> Appends logging events to the console. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.DebugAppender.html">DebugAppender</a>
</td>
<td width="50%"> Appends log events to the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemDiagnosticsDebugClassTopic.htm">Debug</a> system. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.EventLogAppender.html">EventLogAppender</a>
</td>
<td width="50%"> Writes events to the system event log. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.FileAppender.html">FileAppender</a>
</td>
<td width="50%"> Appends logging events to a file. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.ForwardingAppender.html">ForwardingAppender</a>
</td>
<td width="50%"> This appender forwards logging events to attached appenders. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.LocalSyslogAppender.html">LocalSyslogAppender</a>
</td>
<td width="50%"> Logs events to a local syslog service. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.MemoryAppender.html">MemoryAppender</a>
</td>
<td width="50%"> Stores logging events in an array. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.NetSendAppender.html">NetSendAppender</a>
</td>
<td width="50%"> Logs entries by sending network messages using the <a href="log4net.Appender.NetSendAppender.NetMessageBufferSend.html">NetMessageBufferSend</a> native function. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.OutputDebugStringAppender.html">OutputDebugStringAppender</a>
</td>
<td width="50%"> Appends log events to the OutputDebugString system. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.RemoteSyslogAppender.html">RemoteSyslogAppender</a>
</td>
<td width="50%"> Logs events to a remote syslog daemon. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.RemotingAppender.html">RemotingAppender</a>
</td>
<td width="50%"> Delivers logging events to a remote logging sink. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.RollingFileAppender.html">RollingFileAppender</a>
</td>
<td width="50%"> Appender that rolls log files based on size or date or both. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.SmtpAppender.html">SmtpAppender</a>
</td>
<td width="50%"> Send an e-mail when a specific logging event occurs, typically on errors or fatal errors. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.SmtpPickupDirAppender.html">SmtpPickupDirAppender</a>
</td>
<td width="50%"> Send an email when a specific logging event occurs, typically on errors or fatal errors. Rather than sending via smtp it writes a file into the directory specified by <a href="log4net.Appender.SmtpPickupDirAppender.PickupDir.html">PickupDir</a>. This allows services such as the IIS SMTP agent to manage sending the messages. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.TelnetAppender.html">TelnetAppender</a>
</td>
<td width="50%"> Appender that allows clients to connect via Telnet to receive log messages </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.TextWriterAppender.html">TextWriterAppender</a>
</td>
<td width="50%"> Sends logging events to a <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemIOTextWriterClassTopic.htm">TextWriter</a>. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.TraceAppender.html">TraceAppender</a>
</td>
<td width="50%"> Appends log events to the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemDiagnosticsTraceClassTopic.htm">Trace</a> system. </td>
</tr>
<tr valign="top">
<td width="50%">
<a href="log4net.Appender.UdpAppender.html">UdpAppender</a>
</td>
<td width="50%"> Sends logging events as connectionless UDP datagrams to a remote host or a multicast group using an <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemNetSocketsUdpClientClassTopic.htm">UdpClient</a>. </td>
</tr>
</table>
</div>
<h4 class="dtH4">Remarks</h4>
<p> Implementors should consider extending the <a href="log4net.Appender.AppenderSkeleton.html">AppenderSkeleton</a> class which provides a default implementation of this interface. </p>
<p> Appenders can also implement the <a href="log4net.Core.IOptionHandler.html">IOptionHandler</a> interface. Therefore they would require that the <a href="log4net.Core.IOptionHandler.ActivateOptions.html">ActivateOptions</a> method be called after the appenders properties have been configured. </p>
<h4 class="dtH4">Requirements</h4><p><b>Namespace: </b><a href="log4net.Appender.html">log4net.Appender</a></p><p><b>Assembly: </b>log4net (in log4net.dll)
</p><h4 class="dtH4">See Also</h4><p><a href="log4net.Appender.IAppenderMembers.html">IAppender Members</a> | <a href="log4net.Appender.html">log4net.Appender Namespace</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="IAppender interface, about IAppender interface"></param></object><hr /><div id="footer"><a href='http://logging.apache.org/log4net/'>Copyright 2004-2011 The Apache Software Foundation.</a><br></br>Apache log4net, Apache and log4net are trademarks of The Apache Software Foundation.</div></div>
</body>
</html>