XmlLayoutSchemaLog4j Constructor (Boolean) | Apache log4net™ SDK Documentation

Constructs an XMLLayoutSchemaLog4j.

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

C#
VB
C++
F#
Copy

    public XmlLayoutSchemaLog4j(
    	bool locationInfo
    )

    Public Sub New (
    	locationInfo As Boolean
    )

    public:
    XmlLayoutSchemaLog4j(
    	bool locationInfo
    )

    new :
            locationInfo : bool -> XmlLayoutSchemaLog4j

#### Parameters

locationInfo
  Type: System
  Boolean

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

Remarks

The LocationInfo 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.

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

XmlLayoutSchemaLog4j Class
XmlLayoutSchemaLog4j Overload
log4net.Layout Namespace