BstAutoLog.Web 10.1.0
BstAutoLog.Web
How to use
Program.cs
services.AddAutoLog<ApplicationDbContext>();
services.AddAutoLogWebServices(options => {
options.UserTypeClaim = "user_type"; // optional: claim type for UserType
options.RealUserIdClaim = "original_user_id"; // optional: real user's id while impersonating
options.RealUserNameClaim = "original_user_name"; // optional: real user's name while impersonating
});
Each option names a claim type on the authenticated user. When an option is not set, or the user doesn't have that claim, the field stays null. The claim names above are examples; use the claims your impersonation code adds.
Model.cs
: ILogChanges, IHasAutoLogInfo (either or both: see the BstAutoLog readme)
ApplicationDbContext.cs
builder.ConfigureAutoLog();
User information (UserId, UserName, UserType, RealUserId, RealUserName) and IP address are automatically extracted from HttpContext.
See the BstAutoLog readme for changed properties, [AutoLogIgnore], retention, and the 10.2 migration note.
No packages depend on BstAutoLog.Web.
.NET 10.0
- BstAutoLog (>= 10.2.0)
- BstHelpers.Web (>= 10.0.16)
| Version | Downloads | Last updated |
|---|---|---|
| 10.1.0 | 1 | 09/11/2026 |
| 10.0.13 | 2 | 06/11/2026 |
| 10.0.12 | 25 | 20/10/2026 |
| 10.0.11 | 23 | 22/09/2026 |
| 10.0.10 | 64 | 18/07/2026 |
| 10.0.9 | 133 | 14/06/2026 |
| 10.0.8 | 40 | 17/05/2026 |
| 10.0.7 | 20 | 08/05/2026 |
| 10.0.6 | 21 | 08/05/2026 |
| 10.0.5 | 28 | 03/05/2026 |
| 10.0.4 | 41 | 23/04/2026 |
| 10.0.3 | 27 | 16/04/2026 |
| 10.0.2 | 25 | 13/04/2026 |
| 10.0.1 | 26 | 13/04/2026 |