LocationInfo Property

log4net SDK Reference |

# XmlLayoutBase.LocationInfo Property

Gets a value indicating whether to include location information in the XML events.

[Visual Basic]
Public Property LocationInfo As Boolean
[C#]
public bool LocationInfo {get; set;}

#### Property Value

`true` if location information should be included in the XML events; otherwise, `false`.

#### Remarks

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