XmlLayoutBase Constructor (Boolean) | Apache log4net™ SDK Documentation

Protected constructor to support subclasses

Namespace: log4net.Layout
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    protected XmlLayoutBase(
    	bool locationInfo
    )

    Protected Sub New (
    	locationInfo As Boolean
    )

    protected:
    XmlLayoutBase(
    	bool locationInfo
    )

    new :
            locationInfo : bool -> XmlLayoutBase

#### Parameters

locationInfo
  Type: System
  Boolean

  [Missing <param name="locationInfo"/> documentation for "M:log4net.Layout.XmlLayoutBase.#ctor(System.Boolean)"]

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

#### Reference

XmlLayoutBase Class
XmlLayoutBase Overload
log4net.Layout Namespace