mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
removed logconfiguration
This commit is contained in:
parent
2fae57dbea
commit
651c7c095a
23 changed files with 2762 additions and 245 deletions
21
NzbDrone.Common/Instrumentation/VersionLayoutRenderer.cs
Normal file
21
NzbDrone.Common/Instrumentation/VersionLayoutRenderer.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using NLog;
|
||||
using NLog.Config;
|
||||
using NLog.LayoutRenderers;
|
||||
|
||||
namespace NzbDrone.Common.Instrumentation
|
||||
{
|
||||
[ThreadAgnostic]
|
||||
[LayoutRenderer("version")]
|
||||
public class VersionLayoutRenderer : LayoutRenderer
|
||||
{
|
||||
private static readonly string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||
|
||||
protected override void Append(StringBuilder builder, LogEventInfo logEvent)
|
||||
{
|
||||
builder.Append(version);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue