mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 08:44:29 +08:00
18 lines
494 B
C#
18 lines
494 B
C#
// Copyright (c) 2025-2026 GeWuYou
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
using GFramework.Core.Abstractions.Logging;
|
|
|
|
namespace GFramework.Core.Abstractions.Rule;
|
|
|
|
/// <summary>
|
|
/// 定义一个支持日志记录的接口,允许实现类设置和使用日志记录器
|
|
/// </summary>
|
|
public interface ILogAware
|
|
{
|
|
/// <summary>
|
|
/// 设置日志记录器
|
|
/// </summary>
|
|
/// <param name="logger">要设置的ILogger实例</param>
|
|
void SetLogger(ILogger logger);
|
|
} |