Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

XmlLayoutBase�Constructor�(Boolean)

Protected constructor to support subclasses

[Visual�Basic]
Overloads�Protected�Sub�New( _
���ByVal locationInfo�As�Boolean�_
)
[C#]
protected�XmlLayoutBase(
���boollocationInfo
);

Remarks

The locationInfo parameter determines whether location information will be output by the layout. If locationInfo is set to true, then the file name and line number of the statement at the origin of the log statement will be output.

If you are embedding this layout within an SMTPAppender then make sure to set the LocationInfo option of that appender as well.

See Also

XmlLayoutBase Class | log4net.Layout Namespace | XmlLayoutBase Constructor Overload List