blob: 1a7ee8bf6cbce85f17b3e2ea60b0d6e75365f552 [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>LoggingEvent Constructor (Type, ILoggerRepository, LoggingEventData)</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">LoggingEvent�Constructor�(Type, ILoggerRepository, LoggingEventData)</h1>
</div>
</div>
<div id="nstext">
<p> Initializes a new instance of the <a href="log4net.Core.LoggingEvent.html">LoggingEvent</a> class using specific data. </p>
<div class="syntax">
<span class="lang">[Visual�Basic]</span>
<br />Overloads�Public�Sub�New( _<br />���ByVal <i>callerStackBoundaryDeclaringType</i>�As�<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemTypeClassTopic.htm">Type</a>,�_<br />���ByVal <i>repository</i>�As�<a href="log4net.Repository.ILoggerRepository.html">ILoggerRepository</a>,�_<br />���ByVal <i>data</i>�As�<a href="log4net.Core.LoggingEventData.html">LoggingEventData</a>�_<br />)</div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public�LoggingEvent(<br />���<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemTypeClassTopic.htm">Type</a><i>callerStackBoundaryDeclaringType</i>,<br />���<a href="log4net.Repository.ILoggerRepository.html">ILoggerRepository</a><i>repository</i>,<br />���<a href="log4net.Core.LoggingEventData.html">LoggingEventData</a><i>data</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>callerStackBoundaryDeclaringType</i>
</dt>
<dd>The declaring type of the method that is the stack boundary into the logging system for this call.</dd>
<dt>
<i>repository</i>
</dt>
<dd>The repository this event is logged in.</dd>
<dt>
<i>data</i>
</dt>
<dd>Data used to initialize the logging event.</dd>
</dl>
<h4 class="dtH4">Remarks</h4>
<p> This constructor is provided to allow a <a href="log4net.Core.LoggingEvent.html">LoggingEvent</a> to be created independently of the log4net framework. This can be useful if you require a custom serialization scheme. </p>
<p> Use the <b>GetLoggingEventData</b> method to obtain an instance of the <a href="log4net.Core.LoggingEventData.html">LoggingEventData</a> class. </p>
<p> This constructor sets this objects <a href="log4net.Core.LoggingEvent.Fix.html">Fix</a> flags to <a href="log4net.Core.FixFlags.html">All</a>, this assumes that all the data relating to this event is passed in via the <i>data</i> parameter and no other data should be captured from the environment. </p>
<h4 class="dtH4">See Also</h4><p><a href="log4net.Core.LoggingEvent.html">LoggingEvent Class</a> | <a href="log4net.Core.html">log4net.Core Namespace</a> | <a href="log4net.Core.LoggingEventConstructor.html">LoggingEvent Constructor Overload List</a></p><hr /><div id="footer"><a href='http://logging.apache.org/log4net/'>Copyright 2004-2013 The Apache Software Foundation.</a><br></br>Apache log4net, Apache and log4net are trademarks of The Apache Software Foundation.</div></div>
</body>
</html>