Ltnm.Extensions.Logging.Core
1.0.7
See the version list below for details.
dotnet add package Ltnm.Extensions.Logging.Core --version 1.0.7
NuGet\Install-Package Ltnm.Extensions.Logging.Core -Version 1.0.7
<PackageReference Include="Ltnm.Extensions.Logging.Core" Version="1.0.7" />
paket add Ltnm.Extensions.Logging.Core --version 1.0.7
#r "nuget: Ltnm.Extensions.Logging.Core, 1.0.7"
// Install Ltnm.Extensions.Logging.Core as a Cake Addin #addin nuget:?package=Ltnm.Extensions.Logging.Core&version=1.0.7 // Install Ltnm.Extensions.Logging.Core as a Cake Tool #tool nuget:?package=Ltnm.Extensions.Logging.Core&version=1.0.7
public static IWebHostBuilder CreateWebHostBuilder(string[] args) ⇒ WebHost.CreateDefaultBuilder(args) .ConfigureLogging(logging ⇒ { logging.ClearProviders(); // logging.AddFileLogger(); logging.AddFileLogger(options ⇒ { options.Folder = "LogFiles"; options.MaxFileSizeInMB = 5; options.FormatJson = true; options.AllowLogLevels = new System.Collections.Generic.List<LogLevel> { LogLevel.Error, LogLevel.Critical, LogLevel.None, LogLevel.Information }; }); }) .UseStartup<Startup>();
============================ Setup Log Http Request/Response
StartUp.cs public void Configure(IApplicationBuilder app, IHostingEnvironment env){ ....
app.UseMiddleware<RequestResponseLoggingMiddleware>(Options.Create(new LoggingMiddlewareOption { WriteLogBody = false, LogTimeUTC = false, ProjectName = "Pass2", LogOptions = new FileHttpLoggerOption { FileName = "Pass2-LogHttp", Folder = "Pass2-Log/LogHttp", FormatJson = true, LogType = HttpLogType.ALL, MaxFileSizeInMB = 5 } }));
..... app.UseMvc().UseSwagger();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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 | netcoreapp2.2 is compatible. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.2
- Microsoft.AspNetCore.Http (>= 2.2.2)
- Microsoft.AspNetCore.ResponseCaching (>= 2.2.0)
- Microsoft.Extensions.Logging (>= 2.2.0)
- Microsoft.Extensions.Logging.Configuration (>= 2.2.0)
- Microsoft.Extensions.Options (>= 2.2.0)
- Microsoft.IO.RecyclableMemoryStream (>= 1.2.2)
- Newtonsoft.Json (>= 12.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
New Config