Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
LogEvent.cs
1using Microsoft.Extensions.Logging;
2
3namespace Gondwana.Logging;
4
9public static partial class EngineLogger
10{
19 private readonly struct LogEvent
20 {
30 public LogEvent(
31 string categoryName,
32 LogLevel logLevel,
33 EventId eventId,
34 object? state,
35 Exception? exception,
36 Func<object?, Exception?, string> formatter)
37 {
38 CategoryName = categoryName;
39 LogLevel = logLevel;
40 EventId = eventId;
41 State = state;
42 Exception = exception;
43 Formatter = formatter;
44 }
45
49 public string CategoryName { get; }
50
54 public LogLevel LogLevel { get; }
55
59 public EventId EventId { get; }
60
65 public object? State { get; }
66
70 public Exception? Exception { get; }
71
76 public Func<object?, Exception?, string> Formatter { get; }
77 }
78}