DotNetBrightener.ActivityLog.DataStorage 2025.0.6-preview-454

This is a prerelease version of DotNetBrightener.ActivityLog.DataStorage.
dotnet add package DotNetBrightener.ActivityLog.DataStorage --version 2025.0.6-preview-454
                    
NuGet\Install-Package DotNetBrightener.ActivityLog.DataStorage -Version 2025.0.6-preview-454
                    
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="2025.0.6-preview-454" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetBrightener.ActivityLog.DataStorage" Version="2025.0.6-preview-454" />
                    
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 2025.0.6-preview-454
                    
#r "nuget: DotNetBrightener.ActivityLog.DataStorage, 2025.0.6-preview-454"
                    
#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@2025.0.6-preview-454
                    
#: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=2025.0.6-preview-454&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DotNetBrightener.ActivityLog.DataStorage&version=2025.0.6-preview-454&prerelease
                    
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 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 (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
2025.0.6-preview-454 217 9/17/2025
2025.0.6-preview-441 93 9/14/2025
2025.0.6-preview-440 90 9/14/2025
2025.0.6-preview-406 139 9/2/2025
2025.0.6-preview-401 116 9/2/2025
2025.0.6-preview-400 118 9/2/2025