mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 00:39:00 +08:00
- 修复 GodotLog 配置源生命周期、Shutdown 释放与延迟 logger 并发发布问题 - 修复 Godot logger 配置归一化、无效数字级别校验和未知级别颜色回退 - 优化 Godot 日志模板缓存边界、内部文档和 update-namespaces 脚本失败传播 - 补充 Godot logging 回归测试、用户文档与 active ai-plan 恢复记录
22 lines
957 B
C#
22 lines
957 B
C#
using System;
|
|
using GFramework.Core.Abstractions.Logging;
|
|
|
|
namespace GFramework.Godot.Logging;
|
|
|
|
/// <summary>
|
|
/// Carries the already-resolved values that <see cref="GodotLogTemplate"/> needs to render one log line.
|
|
/// </summary>
|
|
/// <param name="Timestamp">The UTC timestamp assigned to the log entry.</param>
|
|
/// <param name="Level">The severity level used for filtering, formatting, and Godot debug routing.</param>
|
|
/// <param name="Category">The source logger category name.</param>
|
|
/// <param name="Message">The formatted log message body.</param>
|
|
/// <param name="Color">The Godot BBCode color name resolved for <paramref name="Level"/>.</param>
|
|
/// <param name="Properties">The preformatted structured property suffix, or an empty string when none exist.</param>
|
|
internal readonly record struct GodotLogRenderContext(
|
|
DateTime Timestamp,
|
|
LogLevel Level,
|
|
string Category,
|
|
string Message,
|
|
string Color,
|
|
string Properties);
|