CloudYxt.Redis.Logging 1.0.2

dotnet add package CloudYxt.Redis.Logging --version 1.0.2
NuGet\Install-Package CloudYxt.Redis.Logging -Version 1.0.2
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="CloudYxt.Redis.Logging" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CloudYxt.Redis.Logging --version 1.0.2
#r "nuget: CloudYxt.Redis.Logging, 1.0.2"
#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.
// Install CloudYxt.Redis.Logging as a Cake Addin
#addin nuget:?package=CloudYxt.Redis.Logging&version=1.0.2

// Install CloudYxt.Redis.Logging as a Cake Tool
#tool nuget:?package=CloudYxt.Redis.Logging&version=1.0.2

云享通.Net Core针对Redis扩展日志操作库

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.2 279 12/27/2022
1.0.1 257 8/17/2022
1.0.0 260 8/17/2022

云享通.Net Core针对Redis扩展日志操作库

除将日志信息写入List(dbRunStatLog)外,同时根据日志信息同步当前方法的最终值至Hash(dbRunStat)以实现状态值。日志写入时内置数据缓冲,提高频繁写入时的数据性能。

1.0.2
修正程序退出时会出现漏写的BUG

1.0.1
增加dbRunStatLog的数据结构说明和ClickHouse转储的数据结构

1.0.0
常规初始化日志引擎方法:
IHost host = Host.CreateDefaultBuilder(args)
   .ConfigureLogging((hostingContext, logging) =>
   {
       logging.ClearProviders();
       logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
#if DEBUG
       logging.AddConsole();
       logging.AddDebug();
#endif
       logging.AddProvider(new redisLoggerProvider(Redis数据库));
   })
   .ConfigureServices(services =>
   {
       ……
   })
   .Build();

常用记录日志的方法:
_logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now); //普通文本日志
_logger.LogInformation("INC:{num},TAG:{tag}", 1, "1001"); //向“1001”对象增加1个计数的日志