using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Extensions.Logging; namespace KH.WMS.Core.Attributes { /// /// 日志拦截器特性 /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)] public class LogInterceptorAttribute : Attribute { /// /// 是否记录参数 /// public bool LogParameters { get; set; } = true; /// /// 是否记录返回值 /// public bool LogReturnValue { get; set; } = false; /// /// 是否记录执行时间 /// public bool LogExecutionTime { get; set; } = true; /// /// 日志级别 /// public LogLevel LogLevel { get; set; } = LogLevel.Information; } }