SiHan.Asp.Logger 3.1.1

ASP.NET Core 日志库

Install-Package SiHan.Asp.Logger -Version 3.1.1
dotnet add package SiHan.Asp.Logger --version 3.1.1
<PackageReference Include="SiHan.Asp.Logger" Version="3.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SiHan.Asp.Logger --version 3.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SiHan.Asp.Logger, 3.1.1"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

SiHan.Asp.Logger

介绍

ASP.NET Core 简单日志库,为ASP.NET Core 3.1添加颜色控制台、滚动文件日志。

安装

PM> Install-Package SiHan.Asp.Logger

使用

public class Program
    {
        public static void Main(string[] args)
        {
            CreateWebHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =>
			Host.CreateDefaultBuilder(args)
			.ConfigureLogging(logging =>
			{
				logging.ClearProviders();
				logging.AddConsole();
				logging.AddFile();
			})
			.ConfigureWebHostDefaults(webBuilder =>
			{
				webBuilder.UseStartup<Startup>();
			});

    }

SiHan.Asp.Logger

介绍

ASP.NET Core 简单日志库,为ASP.NET Core 3.1添加颜色控制台、滚动文件日志。

安装

PM> Install-Package SiHan.Asp.Logger

使用

public class Program
    {
        public static void Main(string[] args)
        {
            CreateWebHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =>
			Host.CreateDefaultBuilder(args)
			.ConfigureLogging(logging =>
			{
				logging.ClearProviders();
				logging.AddConsole();
				logging.AddFile();
			})
			.ConfigureWebHostDefaults(webBuilder =>
			{
				webBuilder.UseStartup<Startup>();
			});

    }

  • .NETCoreApp 3.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SiHan.Asp.Logger:

Package Downloads
SiHan.Asp.Common
ASP.NET Core 工具类

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.1.1 128 8/21/2020
3.1.0 96 8/4/2020
2.1.0 321 11/10/2019