Oproto.FluentDynamoDb.Logging.Extensions
0.8.0
dotnet add package Oproto.FluentDynamoDb.Logging.Extensions --version 0.8.0
NuGet\Install-Package Oproto.FluentDynamoDb.Logging.Extensions -Version 0.8.0
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="Oproto.FluentDynamoDb.Logging.Extensions" Version="0.8.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Oproto.FluentDynamoDb.Logging.Extensions" Version="0.8.0" />
<PackageReference Include="Oproto.FluentDynamoDb.Logging.Extensions" />
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 Oproto.FluentDynamoDb.Logging.Extensions --version 0.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Oproto.FluentDynamoDb.Logging.Extensions, 0.8.0"
#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 Oproto.FluentDynamoDb.Logging.Extensions@0.8.0
#: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=Oproto.FluentDynamoDb.Logging.Extensions&version=0.8.0
#tool nuget:?package=Oproto.FluentDynamoDb.Logging.Extensions&version=0.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Oproto.FluentDynamoDb.Logging.Extensions
Microsoft.Extensions.Logging adapter for Oproto.FluentDynamoDb, enabling seamless integration with the standard .NET logging infrastructure.
Installation
dotnet add package Oproto.FluentDynamoDb.Logging.Extensions
Overview
This package bridges IDynamoDbLogger to Microsoft.Extensions.Logging.ILogger, allowing you to use your existing logging configuration with Oproto.FluentDynamoDb. All DynamoDB operations will be logged through your configured logging providers (Console, Application Insights, Serilog, etc.).
Usage
With ILoggerFactory
using Oproto.FluentDynamoDb;
using Oproto.FluentDynamoDb.Logging.Extensions;
using Microsoft.Extensions.Logging;
// Get ILoggerFactory from dependency injection
var loggerFactory = serviceProvider.GetRequiredService<ILoggerFactory>();
// Configure options with logging
var options = new FluentDynamoDbOptions()
.WithLogger(loggerFactory.ToDynamoDbLogger<ProductsTable>());
// Pass options to table constructor
var table = new ProductsTable(client, "products", options);
// All operations are now logged
await table.Products.GetAsync("product-123");
With ILogger
using Oproto.FluentDynamoDb;
using Oproto.FluentDynamoDb.Logging.Extensions;
using Microsoft.Extensions.Logging;
// Convert any ILogger to IDynamoDbLogger
var logger = loggerFactory.CreateLogger<ProductsTable>();
var options = new FluentDynamoDbOptions()
.WithLogger(logger.ToDynamoDbLogger());
var table = new ProductsTable(client, "products", options);
With Category Name
var options = new FluentDynamoDbOptions()
.WithLogger(loggerFactory.ToDynamoDbLogger("DynamoDb.Operations"));
Features
- Seamless Integration: Works with any Microsoft.Extensions.Logging provider
- Scope Preservation: ILogger scopes flow through correctly
- Log Level Mapping: DynamoDB log levels map to standard .NET log levels
- AOT Compatible: Full support for Native AOT compilation
- Structured Logging: Parameters are preserved for structured logging providers
Log Output Example
[Trace] Starting FromDynamoDb mapping for Product with 8 attributes
[Debug] Mapping property Id from String
[Information] Executing GetItem on table products
[Information] GetItem completed. ConsumedCapacity: 1.0
Links
- 📚 Documentation: fluentdynamodb.dev
- 🐙 GitHub: github.com/oproto/fluent-dynamodb
- 📦 NuGet: Oproto.FluentDynamoDb.Logging.Extensions
License
MIT License - see LICENSE for details.
| Product | Versions 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 was computed. 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.
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0 && < 10.0.0)
- Oproto.FluentDynamoDb (>= 0.8.0)
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 |
|---|---|---|
| 0.8.0 | 192 | 12/5/2025 |