Serialize LogSource as string instead of numerical representation
This commit is contained in:
parent
fe5e2cb80f
commit
7eb62cb267
1 changed files with 5 additions and 1 deletions
|
@ -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
|
public enum LogSource
|
||||||
{
|
{
|
||||||
Geekbot,
|
Geekbot,
|
||||||
|
|
Loading…
Reference in a new issue