use newtonsoft in logger
This commit is contained in:
parent
276e9bfe8e
commit
fa5797cd22
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Newtonsoft.Json;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
using Utf8Json;
|
|
||||||
|
|
||||||
namespace Geekbot.net.Lib
|
namespace Geekbot.net.Lib
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,6 @@ namespace Geekbot.net.Lib
|
||||||
public GeekbotLogger()
|
public GeekbotLogger()
|
||||||
{
|
{
|
||||||
_serilog = LoggerFactory.CreateLogger();
|
_serilog = LoggerFactory.CreateLogger();
|
||||||
//JsonSerializer.SetDefaultResolver(StandardResolver.AllowPrivateExcludeNullSnakeCase);
|
|
||||||
Information("Geekbot", "Using GeekbotLogger");
|
Information("Geekbot", "Using GeekbotLogger");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +53,7 @@ namespace Geekbot.net.Lib
|
||||||
StackTrace = stackTrace,
|
StackTrace = stackTrace,
|
||||||
Extra = extra
|
Extra = extra
|
||||||
};
|
};
|
||||||
return JsonSerializer.ToJsonString(logObject);
|
return JsonConvert.SerializeObject(logObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue