blob: 8549c992a0662f36c0480c2d3982dec469bc0df6 [file] [log] [blame]
<html><head><meta http-equiv="X-UA-Compatible" content="IE=edge" /><link rel="shortcut icon" href="../icons/favicon.ico" /><style type="text/css">.OH_CodeSnippetContainerTabLeftActive, .OH_CodeSnippetContainerTabLeft,.OH_CodeSnippetContainerTabLeftDisabled { }.OH_CodeSnippetContainerTabRightActive, .OH_CodeSnippetContainerTabRight,.OH_CodeSnippetContainerTabRightDisabled { }.OH_footer { }</style><link rel="stylesheet" type="text/css" href="../styles/branding.css" /><link rel="stylesheet" type="text/css" href="../styles/branding-en-US.css" /><script type="text/javascript" src="../scripts/branding.js"> </script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>ILogExtensions Class</title><meta name="Language" content="en-us" /><meta name="System.Keywords" content="ILogExtensions class" /><meta name="System.Keywords" content="log4net.Util.ILogExtensions class" /><meta name="System.Keywords" content="ILogExtensions class, about ILogExtensions class" /><meta name="Microsoft.Help.F1" content="log4net.Util.ILogExtensions" /><meta name="Microsoft.Help.Id" content="T:log4net.Util.ILogExtensions" /><meta name="Description" content="The static class ILogExtensions contains a set of widely used methods that ease the interaction with the ILog interface implementations." /><meta name="Microsoft.Help.ContentType" content="Reference" /><meta name="BrandingAware" content="true" /><meta name="container" content="log4net.Util" /><meta name="file" content="T_log4net_Util_ILogExtensions" /><meta name="guid" content="T_log4net_Util_ILogExtensions" /><link type="text/css" rel="stylesheet" href="../styles/highlight.css" /><script type="text/javascript" src="../scripts/highlight.js"> </script></head><body onload="OnLoad('cs')"><input type="hidden" id="userDataCache" class="userDataStyle" /><div class="OH_outerDiv"><div class="OH_outerContent"><table class="TitleTable"><tr><td class="OH_tdTitleColumn">ILogExtensions Class</td><td class="OH_tdRunningTitleColumn">Apache log4net™ SDK Documentation</td></tr></table><div id="mainSection"><div id="mainBody"><span class="introStyle"></span><div class="summary">
The static class ILogExtensions contains a set of widely used
methods that ease the interaction with the ILog interface implementations.
</div><div class="OH_CollapsibleAreaRegion"><div class="OH_regiontitle">Inheritance Hierarchy</div><div class="OH_CollapsibleArea_HrDiv"><hr class="OH_CollapsibleArea_Hr" /></div></div><div class="OH_clear"> </div><a href="http://msdn2.microsoft.com/en-us/library/e5kfa45b" target="_blank">System<span id="LST83618C78_0"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_0?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>Object</a><br />  <span class="selflink">log4net.Util<span id="LST83618C78_1"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_1?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>ILogExtensions</span><br /><p> </p><strong>Namespace:</strong> <a href="N_log4net_Util.htm">log4net.Util</a><br /><strong>Assembly:</strong> log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0<div class="OH_CollapsibleAreaRegion"><div class="OH_regiontitle">Syntax</div><div class="OH_CollapsibleArea_HrDiv"><hr class="OH_CollapsibleArea_Hr" /></div></div><div class="OH_clear"> </div><div class="OH_CodeSnippetContainer"><div class="OH_CodeSnippetContainerTabs"><div class="OH_CodeSnippetContainerTabLeft" id="ID0EDCA_tabimgleft"> </div><div id="ID0EDCA_tab1" class="OH_CodeSnippetContainerTabFirst"><a href="#" onclick="javascript:ChangeTab('ID0EDCA','cs','1','4');return false;">C#</a></div><div id="ID0EDCA_tab2" class="OH_CodeSnippetContainerTab"><a href="#" onclick="javascript:ChangeTab('ID0EDCA','vb','2','4');return false;">VB</a></div><div id="ID0EDCA_tab3" class="OH_CodeSnippetContainerTab"><a href="#" onclick="javascript:ChangeTab('ID0EDCA','cpp','3','4');return false;">C++</a></div><div id="ID0EDCA_tab4" class="OH_CodeSnippetContainerTab"><a href="#" onclick="javascript:ChangeTab('ID0EDCA','fs','4','4');return false;">F#</a></div><div class="OH_CodeSnippetContainerTabRight" id="ID0EDCA_tabimgright"> </div></div><div class="OH_CodeSnippetContainerCodeCollection"><div class="OH_CodeSnippetToolBar"><div class="OH_CodeSnippetToolBarText"><a id="ID0EDCA_copyCode" href="#" onclick="javascript:CopyToClipboard('ID0EDCA');return false;" title="Copy">Copy</a></div></div><div id="ID0EDCA_code_Div1" class="OH_CodeSnippetContainerCode" style="display: block"><pre xml:space="preserve"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class</span> <span class="identifier">ILogExtensions</span></pre></div><div id="ID0EDCA_code_Div2" class="OH_CodeSnippetContainerCode" style="display: none"><pre xml:space="preserve">&lt;<span class="identifier">ExtensionAttribute</span>&gt;
<span class="keyword">Public</span> <span class="keyword">NotInheritable</span> <span class="keyword">Class</span> <span class="identifier">ILogExtensions</span></pre></div><div id="ID0EDCA_code_Div3" class="OH_CodeSnippetContainerCode" style="display: none"><pre xml:space="preserve">[<span class="identifier">ExtensionAttribute</span>]
<span class="keyword">public</span> <span class="keyword">ref class</span> <span class="identifier">ILogExtensions</span> <span class="keyword">abstract</span> <span class="keyword">sealed</span></pre></div><div id="ID0EDCA_code_Div4" class="OH_CodeSnippetContainerCode" style="display: none"><pre xml:space="preserve">[&lt;<span class="identifier">AbstractClassAttribute</span>&gt;]
[&lt;<span class="identifier">SealedAttribute</span>&gt;]
[&lt;<span class="identifier">ExtensionAttribute</span>&gt;]
<span class="keyword">type</span> <span class="identifier">ILogExtensions</span> = <span class="keyword">class</span> <span class="keyword">end</span></pre></div></div></div><script type="text/javascript">AddLanguageTabSet("ID0EDCA");</script><div class="OH_CollapsibleAreaRegion"><div class="OH_regiontitle">Methods</div><div class="OH_CollapsibleArea_HrDiv"><hr class="OH_CollapsibleArea_Hr" /></div></div><div class="OH_clear"> </div><table id="memberList" class="members"><tr><th class="ps_iconColumn">
 
</th><th>Name</th><th>Description</th></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_DebugExt.htm">DebugExt(ILog, Func<span id="LST83618C78_2"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_2?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>TResult<span id="LST83618C78_3"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_3?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script>)</a></td><td /></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_DebugExt_2.htm">DebugExt(ILog, Object)</a></td><td><div class="summary">
Log a message object with the <a href="F_log4net_Core_Level_Debug.htm">Debug</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_DebugExt_1.htm">DebugExt(ILog, Func<span id="LST83618C78_4"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_4?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>TResult<span id="LST83618C78_5"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_5?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script>, Void)</a></td><td /></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_DebugExt_3.htm">DebugExt(ILog, Object, Exception)</a></td><td><div class="summary">
Log a message object with the <a href="F_log4net_Core_Level_Debug.htm">Debug</a> level including
the stack trace of the <a href="http://msdn2.microsoft.com/en-us/library/c18k6c59" target="_blank">Exception</a> passed
as a parameter.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_DebugFormatExt_1.htm">DebugFormatExt(ILog, String, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Debug.htm">Debug</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_DebugFormatExt_4.htm">DebugFormatExt(ILog, String, <span id="LST83618C78_6"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_6?cpp=array&lt;");</script>Object<span id="LST83618C78_7"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_7?cpp=&gt;|cs=[]|vb=()|nu=[]|fs=[]");</script>)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Debug.htm">Debug</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_DebugFormatExt.htm">DebugFormatExt(ILog, IFormatProvider, String, <span id="LST83618C78_8"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_8?cpp=array&lt;");</script>Object<span id="LST83618C78_9"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_9?cpp=&gt;|cs=[]|vb=()|nu=[]|fs=[]");</script>)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Debug.htm">Debug</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_DebugFormatExt_2.htm">DebugFormatExt(ILog, String, Object, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Debug.htm">Debug</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_DebugFormatExt_3.htm">DebugFormatExt(ILog, String, Object, Object, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Debug.htm">Debug</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_ErrorExt.htm">ErrorExt(ILog, Func<span id="LST83618C78_10"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_10?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>TResult<span id="LST83618C78_11"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_11?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script>)</a></td><td /></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_ErrorExt_2.htm">ErrorExt(ILog, Object)</a></td><td><div class="summary">
Log a message object with the <a href="F_log4net_Core_Level_Error.htm">Error</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_ErrorExt_1.htm">ErrorExt(ILog, Func<span id="LST83618C78_12"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_12?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>TResult<span id="LST83618C78_13"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_13?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script>, Void)</a></td><td /></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_ErrorExt_3.htm">ErrorExt(ILog, Object, Exception)</a></td><td><div class="summary">
Log a message object with the <a href="F_log4net_Core_Level_Error.htm">Error</a> level including
the stack trace of the <a href="http://msdn2.microsoft.com/en-us/library/c18k6c59" target="_blank">Exception</a> passed
as a parameter.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_ErrorFormatExt_1.htm">ErrorFormatExt(ILog, String, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Error.htm">Error</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_ErrorFormatExt_4.htm">ErrorFormatExt(ILog, String, <span id="LST83618C78_14"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_14?cpp=array&lt;");</script>Object<span id="LST83618C78_15"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_15?cpp=&gt;|cs=[]|vb=()|nu=[]|fs=[]");</script>)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Error.htm">Error</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_ErrorFormatExt.htm">ErrorFormatExt(ILog, IFormatProvider, String, <span id="LST83618C78_16"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_16?cpp=array&lt;");</script>Object<span id="LST83618C78_17"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_17?cpp=&gt;|cs=[]|vb=()|nu=[]|fs=[]");</script>)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Error.htm">Error</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_ErrorFormatExt_2.htm">ErrorFormatExt(ILog, String, Object, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Error.htm">Error</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_ErrorFormatExt_3.htm">ErrorFormatExt(ILog, String, Object, Object, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Error.htm">Error</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_FatalExt.htm">FatalExt(ILog, Func<span id="LST83618C78_18"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_18?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>TResult<span id="LST83618C78_19"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_19?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script>)</a></td><td /></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_FatalExt_2.htm">FatalExt(ILog, Object)</a></td><td><div class="summary">
Log a message object with the <a href="F_log4net_Core_Level_Fatal.htm">Fatal</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_FatalExt_1.htm">FatalExt(ILog, Func<span id="LST83618C78_20"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_20?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>TResult<span id="LST83618C78_21"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_21?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script>, Void)</a></td><td /></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_FatalExt_3.htm">FatalExt(ILog, Object, Exception)</a></td><td><div class="summary">
Log a message object with the <a href="F_log4net_Core_Level_Fatal.htm">Fatal</a> level including
the stack trace of the <a href="http://msdn2.microsoft.com/en-us/library/c18k6c59" target="_blank">Exception</a> passed
as a parameter.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_FatalFormatExt_1.htm">FatalFormatExt(ILog, String, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Fatal.htm">Fatal</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_FatalFormatExt_4.htm">FatalFormatExt(ILog, String, <span id="LST83618C78_22"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_22?cpp=array&lt;");</script>Object<span id="LST83618C78_23"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_23?cpp=&gt;|cs=[]|vb=()|nu=[]|fs=[]");</script>)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Fatal.htm">Fatal</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_FatalFormatExt.htm">FatalFormatExt(ILog, IFormatProvider, String, <span id="LST83618C78_24"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_24?cpp=array&lt;");</script>Object<span id="LST83618C78_25"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_25?cpp=&gt;|cs=[]|vb=()|nu=[]|fs=[]");</script>)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Fatal.htm">Fatal</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_FatalFormatExt_2.htm">FatalFormatExt(ILog, String, Object, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Fatal.htm">Fatal</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_FatalFormatExt_3.htm">FatalFormatExt(ILog, String, Object, Object, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Fatal.htm">Fatal</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_InfoExt.htm">InfoExt(ILog, Func<span id="LST83618C78_26"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_26?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>TResult<span id="LST83618C78_27"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_27?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script>)</a></td><td /></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_InfoExt_2.htm">InfoExt(ILog, Object)</a></td><td><div class="summary">
Log a message object with the <a href="F_log4net_Core_Level_Info.htm">Info</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_InfoExt_1.htm">InfoExt(ILog, Func<span id="LST83618C78_28"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_28?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>TResult<span id="LST83618C78_29"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_29?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script>, Void)</a></td><td /></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_InfoExt_3.htm">InfoExt(ILog, Object, Exception)</a></td><td><div class="summary">
Log a message object with the <a href="F_log4net_Core_Level_Info.htm">Info</a> level including
the stack trace of the <a href="http://msdn2.microsoft.com/en-us/library/c18k6c59" target="_blank">Exception</a> passed
as a parameter.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_InfoFormatExt_1.htm">InfoFormatExt(ILog, String, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Info.htm">Info</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_InfoFormatExt_4.htm">InfoFormatExt(ILog, String, <span id="LST83618C78_30"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_30?cpp=array&lt;");</script>Object<span id="LST83618C78_31"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_31?cpp=&gt;|cs=[]|vb=()|nu=[]|fs=[]");</script>)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Info.htm">Info</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_InfoFormatExt.htm">InfoFormatExt(ILog, IFormatProvider, String, <span id="LST83618C78_32"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_32?cpp=array&lt;");</script>Object<span id="LST83618C78_33"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_33?cpp=&gt;|cs=[]|vb=()|nu=[]|fs=[]");</script>)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Info.htm">Info</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_InfoFormatExt_2.htm">InfoFormatExt(ILog, String, Object, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Info.htm">Info</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_InfoFormatExt_3.htm">InfoFormatExt(ILog, String, Object, Object, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Info.htm">Info</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_WarnExt.htm">WarnExt(ILog, Func<span id="LST83618C78_34"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_34?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>TResult<span id="LST83618C78_35"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_35?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script>)</a></td><td /></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_WarnExt_2.htm">WarnExt(ILog, Object)</a></td><td><div class="summary">
Log a message object with the <a href="F_log4net_Core_Level_Warn.htm">Warn</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_WarnExt_1.htm">WarnExt(ILog, Func<span id="LST83618C78_36"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_36?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>TResult<span id="LST83618C78_37"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_37?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script>, Void)</a></td><td /></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_WarnExt_3.htm">WarnExt(ILog, Object, Exception)</a></td><td><div class="summary">
Log a message object with the <a href="F_log4net_Core_Level_Warn.htm">Warn</a> level including
the stack trace of the <a href="http://msdn2.microsoft.com/en-us/library/c18k6c59" target="_blank">Exception</a> passed
as a parameter.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_WarnFormatExt_1.htm">WarnFormatExt(ILog, String, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Warn.htm">Warn</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_WarnFormatExt_4.htm">WarnFormatExt(ILog, String, <span id="LST83618C78_38"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_38?cpp=array&lt;");</script>Object<span id="LST83618C78_39"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_39?cpp=&gt;|cs=[]|vb=()|nu=[]|fs=[]");</script>)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Warn.htm">Warn</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_WarnFormatExt.htm">WarnFormatExt(ILog, IFormatProvider, String, <span id="LST83618C78_40"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_40?cpp=array&lt;");</script>Object<span id="LST83618C78_41"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST83618C78_41?cpp=&gt;|cs=[]|vb=()|nu=[]|fs=[]");</script>)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Warn.htm">Warn</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_WarnFormatExt_2.htm">WarnFormatExt(ILog, String, Object, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Warn.htm">Warn</a> level.
</div></td></tr><tr data="public;static;declared;notNetfw;"><td><img src="../icons/pubmethod.gif" alt="Public method" title="Public method" /><img src="../icons/static.gif" alt="Static member" title="Static member" /></td><td><a href="M_log4net_Util_ILogExtensions_WarnFormatExt_3.htm">WarnFormatExt(ILog, String, Object, Object, Object)</a></td><td><div class="summary">
Logs a formatted message string with the <a href="F_log4net_Core_Level_Warn.htm">Warn</a> level.
</div></td></tr></table><a href="#mainBody">Top</a><div class="OH_CollapsibleAreaRegion"><div class="OH_regiontitle">Remarks</div><div class="OH_CollapsibleArea_HrDiv"><hr class="OH_CollapsibleArea_Hr" /></div></div><div class="OH_clear"> </div><p>
This class contains methods for logging at different levels and checks the
properties for determining if those logging levels are enabled in the current
configuration.
</p><div class="OH_CollapsibleAreaRegion"><div class="OH_regiontitle">Examples</div><div class="OH_CollapsibleArea_HrDiv"><hr class="OH_CollapsibleArea_Hr" /></div></div><div class="OH_clear"> </div>Simple example of logging messages
<div class="OH_CodeSnippetContainer"><div class="OH_CodeSnippetContainerTabs"><div class="OH_CodeSnippetContainerTabLeftActive" id="ID0EAAABA_tabimgleft"> </div><div id="ID0EAAABA_tab1" class="OH_CodeSnippetContainerTabSolo">C#</div><div class="OH_CodeSnippetContainerTabRightActive" id="ID0EAAABA_tabimgright"> </div></div><div class="OH_CodeSnippetContainerCodeCollection"><div class="OH_CodeSnippetToolBar"><div class="OH_CodeSnippetToolBarText"><a id="ID0EAAABA_copyCode" href="#" onclick="javascript:CopyToClipboard('ID0EAAABA');return false;" title="Copy">Copy</a></div></div><div id="ID0EAAABA_code_Div1" class="OH_CodeSnippetContainerCode" style="display: block"><pre xml:space="preserve"><span class="highlight-keyword">using</span> log4net.Util;
ILog log = LogManager.GetLogger(<span class="highlight-literal">"application-log"</span>);
log.InfoExt(<span class="highlight-literal">"Application Start"</span>);
log.DebugExt(<span class="highlight-literal">"This is a debug message"</span>);</pre></div></div></div><script type="text/javascript">AddLanguageTabSet("ID0EAAABA");</script><div class="OH_CollapsibleAreaRegion" id="seeAlsoSection"><div class="OH_regiontitle">See Also</div><div class="OH_CollapsibleArea_HrDiv"><hr class="OH_CollapsibleArea_Hr" /></div></div><div class="OH_clear"> </div><h4 class="subHeading">Reference</h4><div class="seeAlsoStyle"><a href="N_log4net_Util.htm">log4net.Util Namespace</a></div></div></div></div></div><div id="OH_footer" class="OH_footer">Apache log4net, Apache and log4net are trademarks of The Apache Software Foundation.<p><a href="http://logging.apache.org/log4net/" target="_blank">Copyright 2004-2017 The Apache Software Foundation</a></p><div class="OH_feedbacklink">Send comments on this topic to
<a id="HT_MailLink" href="mailto:http%3A%2F%2Flogging.apache.org%2Flog4net%2Fmail-lists.html?Subject=Apache log4net™ SDK Documentation">http://logging.apache.org/log4net/mail-lists.html</a></div><script type="text/javascript">
var HT_mailLink = document.getElementById("HT_MailLink");
var HT_mailLinkText = HT_mailLink.innerHTML;
HT_mailLink.href += ": " + document.title + "\u0026body=" + encodeURIComponent("Your feedback is used to improve the documentation and the product. Your e-mail address will not be used for any other purpose and is disposed of after the issue you report is resolved. While working to resolve the issue that you report, you may be contacted via e-mail to get further details or clarification on the feedback you sent. After the issue you report has been addressed, you may receive an e-mail to let you know that your feedback has been addressed.");
HT_mailLink.innerHTML = HT_mailLinkText;
</script> </div></body></html>