OptimusLog.DataTransfer 2.0.1

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

OptimusLog.DataTransfer

Data transfer objects, enums, and filters for the Optimus Log module. Defines the shared contracts for API logging data exchange between layers.

Features

  • Log DTOs: ApiLogDto, ApiLogListDto for individual and list log representations
  • Setting DTOs: ApiLogSettingDto for logging configuration rules
  • Request Capture: ApiLogParam for capturing HTTP request details (URL, method, headers, query params, body)
  • Log Classification: ApiLogGroupEnum (Controller, REST, Replica, EventIntegration) and ApiLogTypeEnum (Success, Failure, Warning, Info)
  • Flexible Filtering: GetApiLogFilter record with date range, group/type IDs, and criteria search

Key Types

Type Description
ApiLogDto Main log entry DTO with Action, Occurdate, EllapsedTime, IpSource, Param, Response
ApiLogListDto List view DTO with denormalized group/type names
ApiLogSettingDto Logging rule: AccionRegex, Type (WhiteList/BlackList), StoreParam, StoreResponse
ApiLogParam HTTP request capture: Url, Method, Headers, QueryParams, Body
ApiLogGroupEnum CONTROLLER_LISTENER=1, RESTFULL_LISTENER=2, REPLICA=3, EVENT_INTEGRATION=4
ApiLogTypeEnum SUCCESS=1, FAILURE=2, WARNING=3, INFO=4
GetApiLogFilter Filter record with Criteria, StartDate, EndDate, ApiLogGroupId[], ApiLogTypeId[]

Installation

dotnet add package OptimusLog.DataTransfer

Usage

using OptimusLog.DataTransfer.DataTransferObjects;
using OptimusLog.DataTransfer.Enums;

var log = new ApiLogDto
{
    Action = "api/products/list",
    ApiLogGroupId = ApiLogGroupEnum.CONTROLLER_LISTENER,
    ApiLogTypeId = ApiLogTypeEnum.SUCCESS,
    Occurdate = DateTime.Now,
    EllapsedTime = 150
};
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 (3)

Showing the top 3 NuGet packages that depend on OptimusLog.DataTransfer:

Package Downloads
OptimusLog.DataAccess.Domain

Package Description

OptimusLog.AppService.Domain

Package Description

OptimusLog.Api

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 148 2/18/2026
2.0.0 142 2/18/2026