mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-18 21:55:12 -04:00
635e76526a
(cherry picked from commit 609e964794e17343f63e1ecff3fef323e3d284ff)
16 lines
392 B
C#
16 lines
392 B
C#
using System.Text;
|
|
using NLog;
|
|
using NLog.Targets;
|
|
|
|
namespace NzbDrone.Common.Instrumentation
|
|
{
|
|
public class CleansingFileTarget : FileTarget
|
|
{
|
|
protected override void RenderFormattedMessage(LogEventInfo logEvent, StringBuilder target)
|
|
{
|
|
var result = CleanseLogMessage.Cleanse(Layout.Render(logEvent));
|
|
target.Append(result);
|
|
}
|
|
}
|
|
}
|