Gets a value indicating whether to include location information in the XML events.
true
if location information should be included in the XML events; otherwise, false
.
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.
XmlLayoutBase Class | log4net.Layout Namespace