DotNetBrightener.ActivityLog.DataStorage 2026.0.1

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package DotNetBrightener.ActivityLog.DataStorage --version 2026.0.1
                    
NuGet\Install-Package DotNetBrightener.ActivityLog.DataStorage -Version 2026.0.1
                    
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="DotNetBrightener.ActivityLog.DataStorage" Version="2026.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetBrightener.ActivityLog.DataStorage" Version="2026.0.1" />
                    
Directory.Packages.props
<PackageReference Include="DotNetBrightener.ActivityLog.DataStorage" />
                    
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 DotNetBrightener.ActivityLog.DataStorage --version 2026.0.1
                    
#r "nuget: DotNetBrightener.ActivityLog.DataStorage, 2026.0.1"
                    
#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 DotNetBrightener.ActivityLog.DataStorage@2026.0.1
                    
#: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=DotNetBrightener.ActivityLog.DataStorage&version=2026.0.1
                    
Install as a Cake Addin
#tool nuget:?package=DotNetBrightener.ActivityLog.DataStorage&version=2026.0.1
                    
Install as a Cake Tool

Activity Log Database Storage

Adds persistent Layer for Activity Log package.

Quick Setup

1. Choose Your Database

SQL Server (Recommended for Windows/Azure):

dotnet add package DotNetBrightener.ActivityLog.DataStorage.SqlServer

PostgreSQL (Recommended for Linux/Cross-platform):

dotnet add package DotNetBrightener.ActivityLog.DataStorage.PostgreSql

In-Memory (For testing only):

# No additional package needed - built into this package

2. Configure Your Connection

SQL Server:

// In Program.cs or Startup.cs
services.AddActivityLogging()
        .WithStorage()
        .UseSqlServer("Server=localhost;Database=MyApp;Trusted_Connection=true;");

PostgreSQL:

// In Program.cs or Startup.cs
services.AddActivityLogging()
        .WithStorage()
        .UsePostgreSql("Host=localhost;Database=MyApp;Username=myuser;Password=mypass");

In-Memory (for testing):

// Perfect for unit tests and development
services.AddActivityLogging()
        .WithStorage()
        .UseInMemoryDatabase("TestDatabase");

3. Create the Database Tables

The system will automatically create the necessary tables when your application starts.

What Gets Stored

Every time a method with [LogActivity] runs, a record is saved with:

  • When it happened - Start time, end time, duration
  • What method ran - Class name, method name, namespace
  • Who did it - User ID, username (if available)
  • What data was used - Input parameters and return values
  • How it went - Success/failure, any exceptions
  • Extra context - Custom metadata you add during execution
  • Performance info - Execution time, slow method detection
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 (2)

Showing the top 2 NuGet packages that depend on DotNetBrightener.ActivityLog.DataStorage:

Package Downloads
DotNetBrightener.ActivityLog.DataStorage.PostgreSql

Package Description

DotNetBrightener.ActivityLog.DataStorage.SqlServer

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.0.2-preview-v2026-0-1-755 32 3/27/2026
2026.0.2-preview-756 33 3/27/2026
2026.0.2-preview-754 29 3/27/2026
2026.0.1 28 3/27/2026
2026.0.1-preview-temporal-s... 103 3/14/2026
2026.0.1-preview-752 29 3/26/2026
2026.0.1-preview-750 27 3/26/2026
2026.0.1-preview-749 54 3/25/2026
2026.0.1-preview-748 89 3/23/2026
2026.0.1-preview-746 88 3/22/2026
2026.0.1-preview-745 87 3/22/2026
2026.0.1-preview-742 89 3/22/2026
2026.0.1-preview-741 104 3/16/2026
2026.0.1-preview-737 94 3/9/2026
2026.0.1-preview-734 132 2/23/2026
2026.0.1-preview-733 106 2/6/2026
2026.0.1-preview-731 107 2/3/2026
2026.0.1-preview-728 111 1/20/2026
2026.0.1-preview-723 111 1/15/2026
2026.0.1-preview-721 113 1/15/2026
Loading failed