blob: 31158891a7319842d205e0aaba422bcad7131a82 [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>XmlLayout Constructor (Boolean)</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">XmlLayout�Constructor�(Boolean)</h1>
</div>
</div>
<div id="nstext">
<p> Constructs an XmlLayout. </p>
<div class="syntax">
<span class="lang">[Visual�Basic]</span>
<br />Overloads�Public�Sub�New( _<br />���ByVal <i>locationInfo</i>�As�<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a>�_<br />)</div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public�XmlLayout(<br />���<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">bool</a><i>locationInfo</i><br />);</div>
<h4 class="dtH4">Remarks</h4>
<p> The <b>LocationInfo</b> option takes a boolean value. By default, it is set to false which means there will be no location information output by this layout. If the the option is set to true, then the file name and line number of the statement at the origin of the log statement will be output. </p>
<p> If you are embedding this layout within an SmtpAppender then make sure to set the <b>LocationInfo</b> option of that appender as well. </p>
<h4 class="dtH4">See Also</h4><p><a href="log4net.Layout.XmlLayout.html">XmlLayout Class</a> | <a href="log4net.Layout.html">log4net.Layout Namespace</a> | <a href="log4net.Layout.XmlLayoutConstructor.html">XmlLayout Constructor Overload List</a></p><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>