improve output

This commit is contained in:
Oli Sturm
2026-04-27 23:42:31 +01:00
parent d785852c1c
commit 0d02927ba6
4 changed files with 21 additions and 25 deletions
+1 -15
View File
@@ -1,6 +1,3 @@
using System.Text.Json;
using System.Text.Json.Serialization;
namespace CsharpEs.Library;
public static class Logging
@@ -23,18 +20,7 @@ public static class Logging
}
public static string Format(Object? o) =>
o != null
? Indent(
JsonSerializer.Serialize(
o,
new JsonSerializerOptions
{
WriteIndented = true,
Converters = { new JsonStringEnumConverter() },
}
)
)
: "(null)";
Indent(ObjectDumper.Dump(o, new DumpOptions() { DumpStyle = DumpStyle.CSharp }));
public static void Output(string src, string message, Object? x)
{