カスタム Appendar を作成し、Append メソッドをオーバーライドしました。そのメソッドで LoggingEvent を取得していますが、LocationInformation を見ると空で、「?」のみが表示されます。次のプロパティで。
protected override void Append(log4net.Core.LoggingEvent loggingEvent)
{
ClassName = loggingEvent.LocationInformation.ClassName /*contains "?"*/,
MethodName = loggingEvent.LocationInformation.MethodName /*contains "?"*/,
FileName = loggingEvent.LocationInformation.FileName /*contains "?"*/,
FullInfo = loggingEvent.LocationInformation.FullInfo /*contains "?"*/,
}
私が間違っていることは何ですか?
ありがとう