ic

Icomm.Logs (0.3.0)

Published 2025-05-05 22:22:36 +07:00 by Long Nguyễn Đình - Core

Installation

dotnet nuget add source --name ic --username your_username --password your_token https://git.icomm.vn/api/packages/ic/nuget/index.json
dotnet add package --source ic --version 0.3.0 Icomm.Logs

About this package

Utility Logs

Getting started

To use the OpenTelemetry sink, first install the NuGet package:

dotnet add package Icomm.Logs

Register DI:

Host.CreateDefaultBuilder(args)
    ...
    .UseIcommLog()

Write Log with Context

private static readonly Serilog.ILogger Log = Serilog.Log.ForContext<TClass>();
Log.Info(...);
Log.Error(ex,...);

Write Log Static:

using Serilog;
Log.Info(...);
Log.Error(ex,...);

Dependencies

ID Version Target Framework
Serilog 3.1.1 .NETStandard2.0
Serilog.Enrichers.Environment 2.3.0 .NETStandard2.0
Serilog.Enrichers.Process 2.0.2 .NETStandard2.0
Serilog.Extensions.Hosting 7.0.0 .NETStandard2.0
Serilog.Extensions.Logging 7.0.0 .NETStandard2.0
Serilog.Settings.Configuration 7.0.1 .NETStandard2.0
Serilog.Sinks.Console 5.0.1 .NETStandard2.0
Serilog.Sinks.File 5.0.0 .NETStandard2.0
Serilog.Sinks.OpenTelemetry 1.2.0 .NETStandard2.0
SerilogAnalyzer 0.15.0 .NETStandard2.0
Details
NuGet
2025-05-05 22:22:36 +07:00
80
long.nguyen
12 KiB
Assets (2)
Versions (12) View all
0.4.0 2025-05-05
0.3.2 2025-05-05
0.3.1 2025-05-05
0.3.0 2025-05-05
0.2.3 2025-05-05