removed logconfiguration

This commit is contained in:
kay.one 2013-02-27 22:59:08 -08:00
parent 2fae57dbea
commit 651c7c095a
23 changed files with 2762 additions and 245 deletions

View 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);
}
}
}