Levge.AuditLog 1.1.50

There is a newer version of this package available.
See the version list below for details.
dotnet add package Levge.AuditLog --version 1.1.50
                    
NuGet\Install-Package Levge.AuditLog -Version 1.1.50
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Levge.AuditLog" Version="1.1.50" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Levge.AuditLog" Version="1.1.50" />
                    
Directory.Packages.props
<PackageReference Include="Levge.AuditLog" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Levge.AuditLog --version 1.1.50
                    
#r "nuget: Levge.AuditLog, 1.1.50"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Levge.AuditLog@1.1.50
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Levge.AuditLog&version=1.1.50
                    
Install as a Cake Addin
#tool nuget:?package=Levge.AuditLog&version=1.1.50
                    
Install as a Cake Tool

<img src="icon.png" width="100" height="100" alt="Levge.AuditLog logo" />

Levge.AuditLog

NuGet Build

Levge.AuditLog, Entity Framework Core kullanan ASP.NET Core uygulamalar� i�in veritaban� de�i�ikliklerini (Audit Log) kolayca takip etmeyi sa�layan bir k�t�phanedir.

�zellikler

  • ✔️ Entity Framework Core varl�k de�i�ikliklerini (olu�turma, g�ncelleme, silme) otomatik olarak loglar.
  • ✔️ Eski loglar� otomatik olarak temizlemek i�in arka plan servisi (Background Job) i�erir.
  • ✔️ appsettings.json veya kod �zerinden (delegate) kolayca yap�land�r�labilir.
  • ✔️ Her t�rl� birincil anahtar (Primary Key) t�r�n� destekleyen generic yap�.

Kurulum

.NET CLI

dotnet add package Levge.AuditLog

Package Manager

Install-Package Levge.AuditLog

Kurulum ve Kullan�m

  1. Uygulaman�z�n DbContext s�n�f�n� LevgeAuditDbContext<TKey> s�n�f�ndan t�retin.
public class YourDbContext : LevgeAuditDbContext<int>
{
    public YourDbContext(DbContextOptions<YourDbContext> options, ICurrentUser<int> currentUser) 
        : base(options, currentUser)
    {
    }
    
    // DbSet tan�mlar�n�z...
}
  1. Program.cs dosyas�na servisleri ekleyin.

    Servisleri IConfiguration (appsettings.json) kullanarak veya bir Action ile yap�land�rabilirsiniz.

using Levge.AuditLog.SampleApp.Persistence; // DbContext namespace'iniz
using Levge.Identity.Providers; // ICurrentUser sa�lay�c�n�z

var builder = WebApplication.CreateBuilder(args);

// ... di�er servisler

// Audit Logging Ekleme
builder.Services.AddLevgeAuditLog<YourDbContext, int>(builder.Configuration);

// Veya options action ile:
// builder.Services.AddLevgeAuditLog<YourDbContext, int>(options =>
// {
//     options.EnableCleanupJob = true;
//     options.RetentionDays = 30;
//     options.CleanupTime = new TimeOnly(2, 0, 0); // Gece 02:00
// });

var app = builder.Build();

// ...

app.Run();

Yap�land�rma Se�enekleri

AuditLogOptions

Bu ayarlar� appsettings.json dosyan�zdaki AuditLog b�l�m�nde yap�land�rabilirsiniz.

Se�enek T�r A��klama Varsay�lan
EnableCleanupJob bool Eski loglar� silmek i�in arka plan servisini etkinle�tirir. false
RetentionDays int Loglar�n ka� g�n saklanaca��n� belirtir. 60
CleanupTime TimeOnly Temizleme i�leminin g�n�n hangi saatinde �al��aca��n� belirtir (�rn. "03:00:00"). 03:00

Lisans

MIT Lisans�. Detaylar i�in LICENSE dosyas�na bak�n�z.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.0 170 4/29/2026
2.1.0 167 4/27/2026
2.0.1 160 4/27/2026
1.1.50 228 1/22/2026
1.1.48 685 11/10/2025
1.1.47 387 7/3/2025
1.1.46 351 7/3/2025
1.1.45 349 7/3/2025
1.1.44 353 7/3/2025
1.1.43 351 7/3/2025
1.1.42 360 7/2/2025
1.1.41 355 7/2/2025
1.0.20 332 6/21/2025
1.0.19 329 6/21/2025
1.0.18 312 6/21/2025
1.0.17 317 6/21/2025
1.0.16 376 6/19/2025
1.0.15 383 6/19/2025
1.0.13 367 6/19/2025
1.0.12 372 6/19/2025
Loading failed