Credit360.AuditLogging.Producer 1.0.0

dotnet add package Credit360.AuditLogging.Producer --version 1.0.0
                    
NuGet\Install-Package Credit360.AuditLogging.Producer -Version 1.0.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="Credit360.AuditLogging.Producer" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Credit360.AuditLogging.Producer" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Credit360.AuditLogging.Producer" />
                    
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 Credit360.AuditLogging.Producer --version 1.0.0
                    
#r "nuget: Credit360.AuditLogging.Producer, 1.0.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 Credit360.AuditLogging.Producer@1.0.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=Credit360.AuditLogging.Producer&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Credit360.AuditLogging.Producer&version=1.0.0
                    
Install as a Cake Tool

Credit360.AuditLogging.Libraries

Reusable NuGet packages for publishing audit events from Credit360 microservices to the Audit & Logging backend.

Package Purpose
Credit360.AuditLogging.Contracts Event DTOs, Kafka topic names, envelope factory, shared .proto files
Credit360.AuditLogging.Producer Resilient publisher: Kafka primary, gRPC + Coravel fallback when Kafka is unavailable

Install

From a private feed or local folder after packing:

dotnet add package Credit360.AuditLogging.Producer

Local development (after ./pack.ps1):

dotnet nuget add source ./artifacts --name Credit360Local
dotnet add package Credit360.AuditLogging.Producer --source Credit360Local

Configuration

Add to appsettings.json:

{
  "AuditLoggingProducer": {
    "Kafka": {
      "Enabled": true,
      "BootstrapServers": "localhost:9092",
      "AuditLogCreatedTopic": "audit-log-created",
      "AuditLogDefinitionUpdatedTopic": "audit-log-definition-updated"
    },
    "Grpc": {
      "Enabled": true,
      "Address": "http://localhost:9080"
    },
    "Fallback": {
      "UseGrpcWhenKafkaFails": true,
      "QueueGrpcFallbackWithCoravel": true,
      "CoravelMaxRetries": 5
    }
  }
}

Usage

using Credit360.AuditLogging.Contracts.Events;
using Credit360.AuditLogging.Producer.Abstractions;
using Credit360.AuditLogging.Producer.Extensions;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAuditLoggingProducer(builder.Configuration);

var app = builder.Build();
app.Services.ConfigureQueue(); // required for Coravel gRPC fallback

// Inject IAuditEventPublisher where audit events are emitted
await auditPublisher.PublishAuditLogCreatedAsync(new AuditLogEventData
{
    OperationCode = "USER_LOGIN",
    Description = "User signed in",
    UserName = "jane.doe",
    ClientIp = "10.0.0.1"
});

Build and pack

dotnet build Credit360.AuditLogging.sln
./pack.ps1

Packages are emitted to ./artifacts.

Standalone Git repository

This folder is intended to live in its own repository (Credit360.AuditLogging.Libraries). To split from a monorepo:

  1. Copy or move this directory to a new repo root.
  2. Run git init and push to your remote.
  3. Update consuming services to reference NuGet packages instead of project references.

The Audit & Logging service currently references these projects via relative paths during local development.

Kafka topics and gRPC contract

  • Topics: audit-log-created, audit-log-definition-updated
  • Envelope: KafkaEventWrapper<T> with EventType, EventId, Timestamp, Data
  • gRPC service: audit_ingest.AuditIngestService (proto files under Credit360.AuditLogging.Contracts/Protos/)
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 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.

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
1.0.0 123 7/1/2026