EasilyNET.Mongo.ConsoleDebug
1.5.5
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package EasilyNET.Mongo.ConsoleDebug --version 1.5.5
NuGet\Install-Package EasilyNET.Mongo.ConsoleDebug -Version 1.5.5
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="EasilyNET.Mongo.ConsoleDebug" Version="1.5.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EasilyNET.Mongo.ConsoleDebug" Version="1.5.5" />
<PackageReference Include="EasilyNET.Mongo.ConsoleDebug" />
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 EasilyNET.Mongo.ConsoleDebug --version 1.5.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EasilyNET.Mongo.ConsoleDebug, 1.5.5"
#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.
#addin nuget:?package=EasilyNET.Mongo.ConsoleDebug&version=1.5.5
#tool nuget:?package=EasilyNET.Mongo.ConsoleDebug&version=1.5.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EasilyNET.Mongo.ConsoleDebug
常使用 EF 的小伙伴就应该能够知道,可以让 EF 生产的 SQL 语句输出到控制台,在开发的时候非常方便调试.而 MongoDB 却没有这样的功能,所以产生了这个库,虽然不完美,但是能够解决一些开发过程中不方便排查问题的情况.
- 最终效果类似如下:
[16:05:26 INF] MongoRequest: 12,Command:
{
"find" : "mongo.test2",
"filter" : {
"_id" : "c7c5d0f8-b57d-4901-913d-8a5cfacf1286"
},
"limit" : 2,
"$db" : "hoyo",
"lsid" : {
"id" : CSUUID("498de1a4-a352-40f2-9634-d49627f609aa")
}
}
[16:05:26 INF] MongoRequest: 12,Status: Succeeded
对命令文本进行简要的分析,因为不同的命令会产生不同的结构.
名称 含义 find 表示该命令为查询命令,他的值就是查询的集合名称 filter 表示查询条件 limit 表示查询的数据量 $db 表示执行该命令的数据库 可以看到命令文本前加了 MongoRequest 表示请求 ID,同时后边显示了该请求的成功状态. Succeeded 表示执行成功,Failed 表示执行失败.
使用方法
- 使用默认值配置
var clientSettings = MongoClientSettings.FromUrl(mongoUrl);
clientSettings.ClusterConfigurator = cb => cb.Subscribe(new ActivityEventSubscriber());
var mongoClient = new MongoClient(clientSettings);
- 使用集合名称进行过滤
var clientSettings = MongoClientSettings.FromUrl(mongoUrl);
var options = new InstrumentationOptions { ShouldStartActivity = @event => !"collectionToIgnore".Equals(@event.GetCollectionName()) };
clientSettings.ClusterConfigurator = cb => cb.Subscribe(new DiagnosticsActivityEventSubscriber(options));
var mongoClient = new MongoClient(clientSettings);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- MongoDB.Driver.Core (>= 2.19.2)
-
net7.0
- MongoDB.Driver.Core (>= 2.19.2)
-
net8.0
- MongoDB.Driver.Core (>= 2.19.2)
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 |
---|---|---|
4.25.526.140 | 37 | 4 days ago |
4.25.513.101 | 203 | 17 days ago |
4.25.506.150 | 117 | 24 days ago |
4.25.429.162 | 123 | a month ago |
4.25.429.103 | 146 | a month ago |
4.25.411.142 | 121 | 2 months ago |
4.25.409.92 | 131 | 2 months ago |
4.25.403.133 | 127 | 2 months ago |
4.25.319.113 | 131 | 2 months ago |
4.25.312.103 | 137 | 3 months ago |
4.25.227.135 | 83 | 3 months ago |
4.25.221.115 | 75 | 3 months ago |
4.25.212.95 | 82 | 4 months ago |
4.25.211.140 | 80 | 4 months ago |
4.25.124.223 | 65 | 4 months ago |
4.25.116.110 | 66 | 4 months ago |
4.25.115.121 | 35 | 4 months ago |
4.25.114.172 | 57 | 5 months ago |
4.25.109.111 | 60 | 5 months ago |
4.25.108.182 | 63 | 5 months ago |
4.25.108.160 | 62 | 5 months ago |
4.25.1.1 | 89 | 5 months ago |
3.24.1224.141 | 72 | 5 months ago |
3.24.1216.116 | 90 | 5 months ago |
3.24.1206.100 | 76 | 6 months ago |
3.24.1205.171 | 79 | 6 months ago |
3.24.1202.150 | 81 | 6 months ago |
3.24.1126.231 | 75 | 6 months ago |
3.24.1126.172 | 74 | 6 months ago |
3.24.1126.114 | 82 | 6 months ago |
3.24.1126.104 | 77 | 6 months ago |
3.24.1125.181 | 59 | 6 months ago |
3.24.1125.104 | 76 | 6 months ago |
3.24.1121.183 | 68 | 6 months ago |
3.24.1120.183 | 72 | 6 months ago |
3.24.1119.31 | 70 | 6 months ago |
3.24.1115.143 | 59 | 6 months ago |
3.24.1113.100 | 76 | 7 months ago |
3.24.1112.125 | 77 | 7 months ago |
3.24.1107.140 | 76 | 7 months ago |
3.24.1107.54 | 70 | 7 months ago |
3.24.1107.34 | 69 | 7 months ago |
3.24.1105.111 | 72 | 7 months ago |
3.24.1103.31 | 83 | 7 months ago |
3.24.1103 | 78 | 7 months ago |
3.24.1031.135 | 68 | 7 months ago |
3.24.1031.112 | 70 | 7 months ago |
3.24.1031.104 | 72 | 7 months ago |
3.24.1029.142 | 78 | 7 months ago |
3.24.1025.30 | 73 | 7 months ago |
3.24.1022.142 | 60 | 7 months ago |
3.24.1018.204 | 126 | 7 months ago |
3.24.1018.175 | 118 | 7 months ago |
3.24.1018.166 | 118 | 7 months ago |
3.24.1018.93 | 127 | 7 months ago |
3.24.1017.42 | 74 | 7 months ago |
3.24.1016.161 | 75 | 7 months ago |
3.24.1015.231 | 77 | 7 months ago |
3.24.1015.14 | 75 | 8 months ago |
3.24.1012.114 | 76 | 8 months ago |
3.24.1009.115 | 78 | 8 months ago |
3.24.1008.160 | 72 | 8 months ago |
3.24.1008.133 | 81 | 8 months ago |
3.24.1007.185 | 74 | 8 months ago |
3.24.1003.33 | 82 | 8 months ago |
3.24.1002.162 | 76 | 8 months ago |
3.24.929.143 | 78 | 8 months ago |
3.24.929.141 | 78 | 8 months ago |
3.24.929.131 | 78 | 8 months ago |
3.24.929.122 | 80 | 8 months ago |
3.24.926.184 | 76 | 8 months ago |
3.24.926.182 | 76 | 8 months ago |
3.24.926.175 | 78 | 8 months ago |
3.24.924.160 | 74 | 8 months ago |
3.24.924.133 | 81 | 8 months ago |
3.24.924.124 | 73 | 8 months ago |
3.24.924.10 | 81 | 8 months ago |
3.24.924.1 | 77 | 8 months ago |
3.24.923.234 | 74 | 8 months ago |
3.24.923.232 | 72 | 8 months ago |
3.24.923.155 | 80 | 8 months ago |
3.24.919.92 | 88 | 8 months ago |
3.24.914.125 | 90 | 9 months ago |
3.24.914.115 | 78 | 9 months ago |
3.24.914.111 | 76 | 9 months ago |
3.24.911.95 | 79 | 9 months ago |
3.24.908.215 | 65 | 9 months ago |
3.24.904.200 | 74 | 9 months ago |
3.24.828.163 | 83 | 9 months ago |
3.24.820.173 | 89 | 9 months ago |
3.24.814.92 | 92 | 10 months ago |
3.24.812.115 | 90 | 10 months ago |
3.24.802.100 | 63 | 10 months ago |
3.24.801.162 | 73 | 10 months ago |
3.24.801.160 | 69 | 10 months ago |
3.24.801.155 | 71 | 10 months ago |
3.24.730.164 | 66 | 10 months ago |
3.24.730.91 | 63 | 10 months ago |
3.24.724.91 | 67 | 7/24/2024 |
3.24.718.105 | 84 | 7/18/2024 |
3.24.716.95 | 94 | 7/16/2024 |
3.24.712.94 | 74 | 7/12/2024 |
3.24.710.14 | 77 | 7/9/2024 |
3.24.709.105 | 75 | 7/9/2024 |
3.24.704.94 | 79 | 7/4/2024 |
3.24.701.90 | 86 | 7/1/2024 |
3.24.628.114 | 85 | 6/28/2024 |
3.24.627.145 | 77 | 6/27/2024 |
3.24.620.160 | 85 | 6/20/2024 |
3.24.613.115 | 77 | 6/13/2024 |
3.24.612.95 | 78 | 6/12/2024 |
3.24.528.90 | 75 | 5/28/2024 |
3.24.522.84 | 87 | 5/22/2024 |
3.24.512.213 | 82 | 5/12/2024 |
3.24.508.112 | 87 | 5/8/2024 |
2.2024.428.71 | 80 | 4/28/2024 |
2.2024.427.1128 | 127 | 4/27/2024 |
2.2.72 | 158 | 4/14/2024 |
2.2.71 | 81 | 4/12/2024 |
2.2.8 | 120 | 4/26/2024 |
2.2.6 | 82 | 4/10/2024 |
2.2.5 | 95 | 3/26/2024 |
2.2.4 | 94 | 3/25/2024 |
2.2.3 | 98 | 3/24/2024 |
2.2.2 | 99 | 3/21/2024 |
2.2.1 | 95 | 3/20/2024 |
2.2.0 | 101 | 3/13/2024 |
2.1.9 | 101 | 2/21/2024 |
2.1.8 | 106 | 2/18/2024 |
2.1.7 | 96 | 2/16/2024 |
2.1.6 | 104 | 2/14/2024 |
2.1.5 | 103 | 2/14/2024 |
2.1.4 | 102 | 2/9/2024 |
2.1.3 | 99 | 2/8/2024 |
2.1.2 | 101 | 2/5/2024 |
2.1.1.2 | 158 | 12/26/2023 |
2.1.1.1 | 104 | 12/26/2023 |
2.1.1 | 106 | 12/25/2023 |
2.1.0 | 121 | 12/17/2023 |
2.0.11 | 112 | 12/6/2023 |
2.0.1 | 109 | 11/15/2023 |
2.0.0 | 90 | 11/14/2023 |
1.9.1 | 113 | 11/1/2023 |
1.9.0 | 100 | 10/19/2023 |
1.9.0-preview2 | 89 | 10/12/2023 |
1.9.0-preview1 | 77 | 10/12/2023 |
1.8.9 | 108 | 10/11/2023 |
1.8.8 | 106 | 10/11/2023 |
1.8.7-rc2 | 85 | 9/21/2023 |
1.8.7-rc1 | 88 | 9/12/2023 |
1.8.6 | 132 | 8/31/2023 |
1.8.5 | 107 | 8/25/2023 |
1.8.4 | 108 | 8/24/2023 |
1.8.3 | 114 | 8/23/2023 |
1.8.2 | 174 | 8/22/2023 |
1.8.1 | 104 | 8/18/2023 |
1.8.0 | 600 | 8/15/2023 |
1.7.9 | 587 | 8/11/2023 |
1.7.8 | 558 | 8/11/2023 |
1.7.7 | 586 | 8/10/2023 |
1.7.6 | 634 | 8/9/2023 |
1.7.5 | 542 | 8/9/2023 |
1.7.4 | 664 | 8/3/2023 |
1.7.3 | 613 | 8/1/2023 |
1.7.2 | 650 | 7/31/2023 |
1.7.1 | 618 | 7/27/2023 |
1.7.0 | 623 | 7/25/2023 |
1.6.9 | 630 | 7/25/2023 |
1.6.8 | 642 | 7/24/2023 |
1.6.7 | 671 | 7/20/2023 |
1.6.6 | 686 | 7/19/2023 |
1.6.5 | 560 | 7/19/2023 |
1.6.4 | 643 | 7/17/2023 |
1.6.3 | 608 | 7/17/2023 |
1.6.2 | 671 | 7/12/2023 |
1.6.1 | 692 | 6/30/2023 |
1.6.0 | 642 | 6/26/2023 |
1.5.9 | 672 | 6/22/2023 |
1.5.8 | 647 | 6/15/2023 |
1.5.7.1 | 623 | 6/14/2023 |
1.5.7 | 644 | 6/14/2023 |
1.5.6.2 | 670 | 6/7/2023 |
1.5.6.1 | 644 | 6/7/2023 |
1.5.6 | 698 | 6/7/2023 |
1.5.5.2 | 612 | 5/26/2023 |
1.5.5.1 | 656 | 5/26/2023 |
1.5.5 | 687 | 5/26/2023 |
1.5.4.4 | 710 | 5/25/2023 |
1.5.4.3 | 680 | 5/23/2023 |
1.5.4.2 | 774 | 5/17/2023 |
1.5.4.1 | 687 | 5/16/2023 |
1.5.4 | 734 | 5/11/2023 |
1.5.3 | 678 | 5/11/2023 |
1.5.2 | 679 | 5/10/2023 |
1.5.1 | 646 | 5/10/2023 |
1.5.0 | 726 | 5/6/2023 |
1.4.0 | 721 | 5/5/2023 |
1.3.9 | 738 | 4/23/2023 |
1.3.8.6 | 729 | 4/23/2023 |
1.3.8.5 | 636 | 4/21/2023 |
1.3.8.1 | 753 | 4/12/2023 |
1.3.8 | 744 | 4/11/2023 |
1.3.7 | 716 | 4/9/2023 |
1.3.6.3 | 803 | 4/1/2023 |
1.3.6.2 | 720 | 3/31/2023 |
1.3.6.1 | 762 | 3/31/2023 |
1.3.6 | 747 | 3/31/2023 |
1.3.5 | 729 | 3/30/2023 |
1.3.4.1 | 819 | 3/29/2023 |
1.3.4 | 686 | 3/28/2023 |
1.3.3 | 669 | 3/28/2023 |
1.3.2 | 796 | 3/26/2023 |
1.3.1 | 885 | 3/22/2023 |
1.3.0 | 765 | 3/21/2023 |
1.2.0 | 688 | 3/21/2023 |
1.1.0 | 748 | 3/17/2023 |
1.0.9 | 710 | 3/15/2023 |
1.0.8 | 712 | 3/15/2023 |
1.0.7 | 711 | 3/15/2023 |
1.0.6 | 755 | 3/13/2023 |
1.0.5 | 797 | 3/13/2023 |
1.0.4 | 748 | 3/13/2023 |
1.0.2 | 807 | 2/26/2023 |
1.0.1 | 781 | 2/23/2023 |
1.0.0 | 753 | 2/20/2023 |