[Log] attribute
[Log] attribute has moved
Section titled “[Log] attribute has moved”The [Log] attribute for method-level entry/exit/error logging is now handled by the ZibStack.NET.Aop package.
See the full documentation at: AOP — Log Attribute
Quick summary
Section titled “Quick summary”- Install
ZibStack.NET.Aop(notZibStack.NET.Log) to use[Log] - Call
app.Services.UseAop()at startup - The
ZibStack.NET.Logpackage provides only interpolated-string logging (_logger.LogInformation($"..."))
Migration
Section titled “Migration”If you previously installed ZibStack.NET.Log for the [Log] attribute, add ZibStack.NET.Aop:
dotnet add package ZibStack.NET.AopUpdate your using directives:
// Before:using ZibStack.NET.Log;
// After:using ZibStack.NET.Aop;The [Log], [Sensitive], [NoLog] attributes and ILogConfigurator are now in the ZibStack.NET.Aop namespace. The old ZibStack.NET.Log namespace still works for [Sensitive] and [NoLog] (backward compatibility), but using ZibStack.NET.Aop; is the canonical import going forward.