Wei.Logger 1.1.1

dotnet add package Wei.Logger --version 1.1.1
                    
NuGet\Install-Package Wei.Logger -Version 1.1.1
                    
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.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Wei.Logger" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Wei.Logger" />
                    
Project file
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 Wei.Logger --version 1.1.1
                    
#r "nuget: Wei.Logger, 1.1.1"
                    
#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.
#:package Wei.Logger@1.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Wei.Logger&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Wei.Logger&version=1.1.1
                    
Install as a Cake Tool

目前只支持两种日志方式
 <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 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.

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.1.1 1,441 8/25/2017
1.1.0 1,256 8/25/2017
1.0.9 1,246 8/25/2017
1.0.8 1,250 8/25/2017
1.0.7 1,252 8/25/2017
1.0.6 1,221 8/25/2017
1.0.5 1,253 8/8/2017
1.0.4 1,544 8/4/2017
1.0.3 1,563 7/24/2017
1.0.2 1,539 7/24/2017
1.0.1 1,813 7/23/2017
1.0.0 1,511 7/23/2017

修改Run方法