Hayou.Abp.ApplicationLog.Application
0.1.7
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Hayou.Abp.ApplicationLog.Application --version 0.1.7
NuGet\Install-Package Hayou.Abp.ApplicationLog.Application -Version 0.1.7
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="Hayou.Abp.ApplicationLog.Application" Version="0.1.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hayou.Abp.ApplicationLog.Application" Version="0.1.7" />
<PackageReference Include="Hayou.Abp.ApplicationLog.Application" />
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 Hayou.Abp.ApplicationLog.Application --version 0.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Hayou.Abp.ApplicationLog.Application, 0.1.7"
#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 Hayou.Abp.ApplicationLog.Application@0.1.7
#: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=Hayou.Abp.ApplicationLog.Application&version=0.1.7
#tool nuget:?package=Hayou.Abp.ApplicationLog.Application&version=0.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Hayou.Abp.ApplicationLog.Application
About this solution
这是Abp vNext框架程序运行日志的UI模块文件
Pre-requirements
Configurations
使用程序运行日志UI组件,需要在Web项目添加UI模块的Dll引用 ,并配置日志功能
在项目中添加 Hayou.Abp.ApplicationLog.Application.dll 的引用,或添加包引用
> dotnet add package Hayou.Abp.ApplicationLog.Application
在xxxxxxxWebModule添加对 AbpApplicationLogApplicationModule 的依赖
[DependsOn(
...
typeof(AbpApplicationLogUIModule)
typeof(AbpApplicationLogApplicationModule)
)]
public class DemoWebUnifiedModule : AbpModule{
...
}
并在 Program.cs 中配置程序运行日志
using Serilog;
using Serilog.Events;
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
#if DEBUG
.MinimumLevel.Debug()
#else
.MinimumLevel.Information()
#endif
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.log", rollingInterval: RollingInterval.Day)) //按日期生成日志文件
#if DEBUG
.WriteTo.Async(c => c.Console())
#endif
.CreateLogger();
//其他配置
}
}
日志默认为应用程序根目录的 Logs 目录,默认不需要配置路径。如果在日志配置里使用了其他目录存储日志,则需要在appsettings.json里配置日志目录
{
"ApplicationLogPath": "你的日志目录路径"
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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.
-
net8.0
- Volo.Abp.Ddd.Application (>= 8.3.1)
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 |
|---|