Sicherung

This commit is contained in:
Maier Stephan SI
2023-01-16 16:04:47 +01:00
parent 63512e77aa
commit 0b0508b042
98 changed files with 2454 additions and 188 deletions

View File

@@ -0,0 +1,21 @@
using System.Text;
using NLog;
namespace DJ.Resolver
{
public class MessageResolver : ILogEventInfoResolver
{
public string Resolve(LogEventInfo logEventInfo)
{
StringBuilder builder = new StringBuilder();
builder.Append(logEventInfo.FormattedMessage);
if (logEventInfo.Exception != null)
{
builder.AppendLine().Append(logEventInfo.Exception);
}
return builder.ToString();
}
}
}