RuoVea.ExLog 2.1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package RuoVea.ExLog --version 2.1.1.1
NuGet\Install-Package RuoVea.ExLog -Version 2.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="RuoVea.ExLog" Version="2.1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RuoVea.ExLog --version 2.1.1.1
#r "nuget: RuoVea.ExLog, 2.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.
// Install RuoVea.ExLog as a Cake Addin
#addin nuget:?package=RuoVea.ExLog&version=2.1.1.1

// Install RuoVea.ExLog as a Cake Tool
#tool nuget:?package=RuoVea.ExLog&version=2.1.1.1

RuoVea.ExCache

介绍

LogFactory 操作方法 、日志格式器 LogFormat

支持Net的各个版本和Core系列版本

使用示例

LogFactory.Info("日志内容");
LogFactory.Debug("日志内容");
LogFactory.Warn("日志内容");
LogFactory.Error("日志内容");
LogFactory.Error(Exception error);
LogFactory.Error(Exception error); 
LogFactory.Error(string title, Exception error)

相关配置文件

若没有出现 log4net.config 文件新建该文件
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
  
  <root>
    
    <level value="ERROR"/>
    <level value="WARN"/>
    <level value="INFO"/>
    <level value="DEBUG"/>
    <appender-ref ref="ErrorLog" />
    <appender-ref ref="WarnLog" />
    <appender-ref ref="InfoLog" />
    <appender-ref ref="DebugLog" />
  </root>
  
  <appender name="ErrorLog" type="log4net.Appender.RollingFileAppender">
    
    <param name="File" value="log/"/>
    
    <param name="DatePattern" value="/yyyy-MM-dd/&quot;Error.log&quot;"/>
    
    <appendToFile value="true"/>
    
    <rollingStyle value="Composite"/>
    
    <staticLogFileName value="false"/>
    
    <maximumFileSize value="200MB"/>
    
    <maxSizeRollBackups value="-1"/>
    
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%message"/>
    </layout>
    <filter type="log4net.Filter.LevelRangeFilter">
      <param name="LevelMin" value="ERROR" />
      <param name="LevelMax" value="ERROR" />
    </filter>
  </appender>

  
  <appender name="WarnLog" type="log4net.Appender.RollingFileAppender">
    
    <param name="File" value="log/"/>
    
    <param name="DatePattern" value="/yyyy-MM-dd/&quot;Warn.log&quot;"/>
    
    <appendToFile value="true"/>
    
    <rollingStyle value="Composite"/>
    
    <staticLogFileName value="false"/>
    
    <maximumFileSize value="200MB"/>
    
    <maxSizeRollBackups value="-1"/>
    
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%message"/>
    </layout>
    <filter type="log4net.Filter.LevelRangeFilter">
      <param name="LevelMin" value="WARN" />
      <param name="LevelMax" value="WARN" />
    </filter>
  </appender>

  
  <appender name="InfoLog" type="log4net.Appender.RollingFileAppender">
    
    <param name="File" value="log/"/>
    
    <param name="DatePattern" value="/yyyy-MM-dd/&quot;Info.log&quot;"/>
    
    <appendToFile value="true"/>
    
    <rollingStyle value="Composite"/>
    
    <staticLogFileName value="false"/>
    
    <maximumFileSize value="200MB"/>
    
    <maxSizeRollBackups value="-1"/>
    
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%message"/>
    </layout>
    <filter type="log4net.Filter.LevelRangeFilter">
      <param name="LevelMin" value="INFO" />
      <param name="LevelMax" value="INFO" />
    </filter>
  </appender>

  
  <appender name="DebugLog" type="log4net.Appender.RollingFileAppender">
    
    <param name="File" value="log/"/>
    
    <param name="DatePattern" value="/yyyy-MM-dd/&quot;Debug.log&quot;"/>
    
    <appendToFile value="true"/>
    
    <rollingStyle value="Composite"/>
    
    <staticLogFileName value="false"/>
    
    <maximumFileSize value="200MB"/>
    
    <maxSizeRollBackups value="-1"/>
    
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%message"/>
    </layout>
    <filter type="log4net.Filter.LevelRangeFilter">
      <param name="LevelMin" value="DEBUG" />
      <param name="LevelMax" value="DEBUG" />
    </filter>
  </appender>


  
  
</log4net>

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
.NET Framework net40 is compatible.  net403 was computed.  net45 is compatible.  net451 is compatible.  net452 is compatible.  net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 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.
  • .NETFramework 4.0

  • .NETFramework 4.5

  • .NETFramework 4.5.1

  • .NETFramework 4.5.2

  • .NETFramework 4.6

  • .NETFramework 4.6.1

  • .NETFramework 4.6.2

  • .NETFramework 4.7

  • .NETFramework 4.7.1

  • .NETFramework 4.7.2

  • .NETFramework 4.8

  • .NETFramework 4.8.1

  • .NETStandard 2.1

  • net5.0

NuGet packages (2)

Showing the top 2 NuGet packages that depend on RuoVea.ExLog:

Package Downloads
RuoVea.ExFilter

注入 进行全局的异常日志收集、执行操作日志、参数验证 services.ExceptionSetup();// 注入 全局错误日志处 services.ExceptionSetup(ExceptionLog actionOptions);// 注入 全局错误日志处 services.ExceptionSetup(builder.Configuration.GetSection("AopOption:ExceptionLog"));// 注入 全局错误日志处 services.RequestActionSetup();// 注入 请求日志拦截 [执行操作日志、参数验证 ] services.RequestActionSetup(RequestLog actionOptions);// 注入 请求日志拦截 [执行操作日志、参数验证 ] services.RequestActionSetup(builder.Configuration.GetSection("AopOption:RequestLog"));// 注入 请求日志拦截 [执行操作日志、参数验证 ] services.ResourceSetup();//对资源型信息进行过滤 services.ResultSetup();//对结果进行统一 services.ApISafeSetup(AppSign actionOptions);//接口安全校验 services.ApISafeSetup(builder.Configuration.GetSection("AopOption:AppSign"));//接口安全校验 services.ApISignSetup(AppSign actionOptions);//签名验证 ( appKey + signKey + timeStamp + data ); services.ApISignSetup(builder.Configuration.GetSection("AopOption:AppSign"));//签名验证 ( appKey + signKey + timeStamp + data ); services.AddValidateSetup();//模型校验 services.AddUiFilesZipSetup();//将前端UI压缩文件进行解压 不进行接口安全校验 -> NonAplSafeAttribute 不签名验证 -> NonAplSignAttribute 不进行全局的异常日志收集 -> NonExceptionAttribute 不对资源型信息进行过滤 -> NonResourceAttribute 不对结果进行统一 -> NonRestfulResultAttribute

RuoVea.ExGlobal

web 注入 全局错误日志、操作日志记录

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.0 217 11/24/2023
6.0.1 2,815 6/8/2022
6.0.0 2,014 2/9/2022
5.0.6 430 6/8/2022
5.0.5 1,981 11/26/2021
5.0.4 2,138 11/26/2021
5.0.3 1,858 11/26/2021
5.0.2 4,656 11/24/2021
5.0.1 1,218 9/30/2021
5.0.0 525 9/27/2021
2.1.1.1 95 11/24/2023
2.1.1 459 6/9/2022
2.1.0 445 6/8/2022