Added EonaCat.LogStack.Status
Updated EonaCat.LogStack.LogClient to support EonaCat.LogStack.Status
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using EonaCat.LogStack.Configuration;
|
||||
using EonaCat.LogStack.Extensions;
|
||||
using EonaCat.LogStack.LogClient.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -23,13 +24,13 @@ namespace EonaCat.LogStack.LogClient
|
||||
{
|
||||
var entry = new LogEntry
|
||||
{
|
||||
Level = (int)MapLogLevel(e.Level),
|
||||
Category = e.Category ?? "General",
|
||||
Level = e.Level.ToString().ToLower(),
|
||||
Message = e.Message,
|
||||
Properties = new Dictionary<string, object>
|
||||
{
|
||||
{ "Source", e.Origin ?? "Unknown" }
|
||||
}
|
||||
{
|
||||
{ "Source", e.Origin ?? "Unknown" },
|
||||
{ "Category", e.Category ?? "General" }
|
||||
}.ToJson()
|
||||
};
|
||||
|
||||
if (e.Exception != null)
|
||||
|
||||
Reference in New Issue
Block a user