From 7eb62cb267d74da821bd5bbd1a6f6ae9459544d3 Mon Sep 17 00:00:00 2001 From: runebaas Date: Sun, 6 May 2018 02:05:52 +0200 Subject: [PATCH] Serialize LogSource as string instead of numerical representation --- Geekbot.net/Lib/Logger/LogSource.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Geekbot.net/Lib/Logger/LogSource.cs b/Geekbot.net/Lib/Logger/LogSource.cs index 46b902f..d9a8629 100644 --- a/Geekbot.net/Lib/Logger/LogSource.cs +++ b/Geekbot.net/Lib/Logger/LogSource.cs @@ -1,5 +1,9 @@ -namespace Geekbot.net.Lib.Logger +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Geekbot.net.Lib.Logger { + [JsonConverter(typeof(StringEnumConverter))] public enum LogSource { Geekbot,