Wei.Logger
1.0.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 Wei.Logger --version 1.0.5
NuGet\Install-Package Wei.Logger -Version 1.0.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="Wei.Logger" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Wei.Logger --version 1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Wei.Logger, 1.0.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.
// Install Wei.Logger as a Cake Addin
#addin nuget:?package=Wei.Logger&version=1.0.5
// Install Wei.Logger as a Cake Tool
#tool nuget:?package=Wei.Logger&version=1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
目前只支持两种日志方式
<appSettings>
<!--写日志的方式,可配置1文本,2数据库(mongoDb),默认值为1-->
<add key="WriteLogMethod" value="1,2"/>
<!--如果是要写入数据库,需要添加以下配置信息-->
<add key="MongoDbCon" value="mongodb://IP:27017"/>
</appSettings>
C# Code
写日志
var demo = new WriteLog();
demo.Run(logInfo);
//日志查询,仅限mongoDb
var demo = new SearchLog();
List<LogInfo> logInfos = demo.QueryPageLogs(params)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- mongocsharpdriver (>= 1.9.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
添加一种mongdb分页查询方式