log4net SDK Reference

XmlLayoutSchemaLog4j Constructor (Boolean)

Constructs an XMLLayoutSchemaLog4j.

[Visual Basic]
Overloads Public Sub New( _
   ByVal locationInfo As Boolean _
)
[C#]
public XmlLayoutSchemaLog4j(
   bool locationInfo
);

Parameters

locationInfo
Missing <param> documentation for locationInfo

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

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