CyberEye.Logging.Lib
3.0.28
dotnet add package CyberEye.Logging.Lib --version 3.0.28
NuGet\Install-Package CyberEye.Logging.Lib -Version 3.0.28
<PackageReference Include="CyberEye.Logging.Lib" Version="3.0.28" />
<PackageVersion Include="CyberEye.Logging.Lib" Version="3.0.28" />
<PackageReference Include="CyberEye.Logging.Lib" />
paket add CyberEye.Logging.Lib --version 3.0.28
#r "nuget: CyberEye.Logging.Lib, 3.0.28"
#:package CyberEye.Logging.Lib@3.0.28
#addin nuget:?package=CyberEye.Logging.Lib&version=3.0.28
#tool nuget:?package=CyberEye.Logging.Lib&version=3.0.28
CyberEye.Logging.Lib
Cấu hình Serilog và các sink ghi log: Console, File, Elasticsearch, OTLP, Loki và database theo thiết lập của host.
Target framework: net8.0.
Cài đặt
dotnet add package CyberEye.Logging.Lib
Cần cấu hình NuGet feed của dự án và chọn phiên bản tương thích với các package CyberEye khác trong host.
Đăng ký và cấu hình
using Ce.Logging.Lib.StartupExtensions;
// Chỉ gọi nếu module host chưa đăng ký logging.
builder.Services.AddSerilog(builder.Configuration);
{
"Log": {
"UseLog": true,
"ConsoleSink": { "Enable": true }
}
}
Extension nhận IServiceCollection, không phải builder.Host. Dùng Log/ConsoleSink/Enable, không phải LogConfig/Console/Enabled.
An toàn và vận hành
Package không bảo đảm tự che mọi mật khẩu/token trong dữ liệu log. Caller phải loại secret và dữ liệu cá nhân trước khi ghi. Không giả định thay đổi config sẽ hot reload mọi sink.
Elasticsearch sink ưu tiên DataStream; IndexFormat là nguồn fallback suy ra tên. Cần kiểm tra quyền ghi và bootstrap template.
| 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. |
-
net8.0
- CyberEye.Configuration.Lib (>= 3.0.28)
- Elastic.Serilog.Sinks (>= 8.18.2)
- Microsoft.Extensions.Logging.Configuration (>= 8.0.1)
- Microsoft.Extensions.Logging.Console (>= 8.0.1)
- Microsoft.Extensions.Logging.Debug (>= 8.0.1)
- Microsoft.Extensions.Logging.EventSource (>= 8.0.1)
- Serilog.AspNetCore (>= 8.0.3)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Settings.Configuration (>= 8.0.4)
- Serilog.Sinks.Async (>= 2.1.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.File (>= 7.0.0)
- Serilog.Sinks.Grafana.Loki (>= 8.3.2)
- Serilog.Sinks.MariaDB (>= 1.0.1)
- Serilog.Sinks.MSSqlServer (>= 9.0.3)
- Serilog.Sinks.MySQL (>= 5.0.0)
- Serilog.Sinks.OpenTelemetry (>= 4.2.0)
- Serilog.Sinks.Oracle (>= 1.1.1)
- Serilog.Sinks.PostgreSQL.Configuration (>= 1.0.1)
- Serilog.Sinks.Seq (>= 9.1.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on CyberEye.Logging.Lib:
| Package | Downloads |
|---|---|
|
CyberEye.Interaction.Lib
Package cung cấp các cấu hình giao thức pub/sub (RabbitMq/Kafka) và http/https để giao tiếp giữa các Service (hoặc các hệ thống khác) |
|
|
CyberEye.Common.Lib
Package chứa các hàm tiện ích, các base class, abstract class |
|
|
CyberEye.MongoDb.Lib
Package cung cấp CRUD tương tác với NoSql MongoDb |
|
|
CyberEye.Elasticsearch.Lib
Package cung cấp CRUD tương tác với NoSql Elasticsearch |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.28 | 338 | 11/6/2026 |
| 3.0.27 | 367 | 9/17/2026 |
| 3.0.26 | 370 | 9/8/2026 |
| 3.0.25 | 426 | 8/22/2026 |
| 3.0.24 | 389 | 8/10/2026 |
| 3.0.23 | 392 | 8/9/2026 |
| 3.0.22 | 518 | 8/1/2026 |
| 3.0.21 | 506 | 7/28/2026 |
| 3.0.20 | 492 | 7/27/2026 |
| 3.0.19 | 494 | 7/27/2026 |
| 3.0.18 | 436 | 7/17/2026 |
| 3.0.17 | 450 | 7/13/2026 |
| 3.0.16 | 432 | 7/12/2026 |
| 3.0.15 | 442 | 7/10/2026 |
| 3.0.14 | 423 | 7/10/2026 |
| 3.0.13 | 450 | 7/10/2026 |
| 3.0.12 | 453 | 7/10/2026 |
| 3.0.11 | 433 | 7/10/2026 |
| 3.0.10 | 439 | 7/8/2026 |
| 3.0.9 | 403 | 7/2/2026 |