Better logging for NzbDrone.Service

This commit is contained in:
kay.one
2012-02-15 22:16:57 -08:00
parent d68ae8f3f3
commit dde0432efc
8 changed files with 94 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
namespace NzbDrone.Common.Contract
@@ -13,6 +14,20 @@ namespace NzbDrone.Common.Contract
public string LogMessage { get; set; }
[JsonProperty("s")]
public string String { get; set; }
protected override Dictionary<string, string> GetString()
{
var dic = new Dictionary<string, string>
{
{"ExType", Type.NullCheck()},
{"Logger", Logger.NullCheck()},
{"Message", LogMessage.NullCheck()},
{"Str", String.NullCheck()}
};
return dic;
}
}
}