using System;
namespace GFramework.Godot.SourceGenerators.Abstractions.logging;
///
/// Godot日志特性,用于在类上标记以自动生成日志字段
///
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class GodotLogAttribute : Attribute
{
///
/// 初始化 GodotLogAttribute 类的新实例
///
public GodotLogAttribute()
{
}
///
/// 初始化 GodotLogAttribute 类的新实例
///
/// 日志分类名
public GodotLogAttribute(string? name)
{
Name = name;
}
/// 日志分类名(默认使用类名)
public string? Name { get; set; }
/// 生成字段名
public string FieldName { get; set; } = "Logger";
/// 是否生成 static 字段
public bool IsStatic { get; set; } = true;
/// 访问修饰符
public string AccessModifier { get; set; } = "private";
}