Added EonaCat.LogStack.Status

Updated EonaCat.LogStack.LogClient to support EonaCat.LogStack.Status
This commit is contained in:
2026-03-12 21:15:33 +01:00
parent 776cc624bd
commit 977374ce02
41 changed files with 3412 additions and 180 deletions

View File

@@ -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)