Doo.Logging
0.0.5-alpha
dotnet add package Doo.Logging --version 0.0.5-alpha
NuGet\Install-Package Doo.Logging -Version 0.0.5-alpha
<PackageReference Include="Doo.Logging" Version="0.0.5-alpha" />
paket add Doo.Logging --version 0.0.5-alpha
#r "nuget: Doo.Logging, 0.0.5-alpha"
// Install Doo.Logging as a Cake Addin #addin nuget:?package=Doo.Logging&version=0.0.5-alpha&prerelease // Install Doo.Logging as a Cake Tool #tool nuget:?package=Doo.Logging&version=0.0.5-alpha&prerelease
日志组件
提供基础日志组件,可以很方便的将日志输出到命令行、Sqlite、Kafka和SignalR指定地址中
当前版本:0.0.5-alpha
网络日志中心
提供日志中心,由专门的日志收集节点订阅消息,转换到数据库中
1、Kafka模式:使用Kafka中间件进行通信【需引用Doo.Logging.Kafka,开发中...】
2、SignalR模式:使用SignalR进行通信【需引用Doo.Logging.SignalR,开发中...】
ConsoleLogger 命令行日志
最简用法: var logger = new ConsoleLogger(); logger.TextColors.Trace = ConsoleColor.Gray; logger.TextColors.TraceBackground = ConsoleColor.Red; logger.LogInformation("Information Log Use Trace Color And Trace BG"); logger.TextColors.Information = ConsoleColor.Yellow; logger.LogInformation("Information Log Use Information Color And Trace BG");
0.0.5-alpha新增历史记录 logger.EnableHistory = true;//默认为false logger.HistoryLength = 100;//默认为1000 bool logger.HasNewHistory(long ticks);//自ticks以来是否有新的历史 LogMessage[] logger.ListHistories(long ticks=0);//列出自ticks以来的所有历史条目 //注:历史条目不会有同样的Timestamp,如果两条消息刚好ticks一样,会自动将后来的消息ticks增加1,以此类推。
Product | Versions 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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.Logging (>= 3.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 3.0.0)
- Newtonsoft.Json (>= 12.0.2)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Doo.Logging:
Package | Downloads |
---|---|
Doo.Config
Doo配置节点 可单机可中心 0.1.4-alpha轻量化 |
|
Doo.RealTime.Report.Core
为Doo实时报表引擎提供基础支持 |
|
Doo.Logging.Kafka
为Doo.Logging添加Kafka支持 |
|
Doo.Logging.Sqlite
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.5-alpha | 355 | 10/27/2019 |
0.0.4-alpha | 410 | 10/8/2019 |
0.0.2-alpha | 513 | 10/6/2019 |
0.0.1-alpha | 410 | 10/6/2019 |
日志收集
使用说明见ReadMe.md