GFramework/GFramework.Godot/Logging/GodotLogRenderContext.cs
gewuyou ff553977e3 chore(license): 补齐 Apache-2.0 文件头治理
- 新增许可证文件头检查与修复脚本

- 补充维护者手动修复 PR 工作流和 CI 校验

- 更新贡献指南中的文件头说明

- 补齐仓库维护源码和配置文件的许可证声明
2026-05-03 19:39:49 +08:00

25 lines
1.0 KiB
C#

// Copyright (c) 2025-2026 GeWuYou
// SPDX-License-Identifier: Apache-2.0
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);