Commit c46b4acc by 赵剑炜

正式版1.0

parent 6a1ca82e
...@@ -6,11 +6,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B76348CD-F49 ...@@ -6,11 +6,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B76348CD-F49
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ocelot.Provider.Nacos", "src\Ocelot.Provider.Nacos\Ocelot.Provider.Nacos.csproj", "{284367EA-EC93-4060-ABE7-3EF93A5A888C}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ocelot.Provider.Nacos", "src\Ocelot.Provider.Nacos\Ocelot.Provider.Nacos.csproj", "{284367EA-EC93-4060-ABE7-3EF93A5A888C}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "demo", "demo", "{7A2BFC89-057F-4F8D-ADB7-C7D122B160EF}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GateWay", "GateWay", "{7A2BFC89-057F-4F8D-ADB7-C7D122B160EF}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiGatewayDemo", "demo\ApiGatewayDemo\ApiGatewayDemo.csproj", "{179D0A0F-AAC3-4322-92DE-008F91554389}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiGateway", "gateWay\ApiGateway\ApiGateway.csproj", "{179D0A0F-AAC3-4322-92DE-008F91554389}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProductApi", "demo\ProductApi\ProductApi.csproj", "{F1AA9A81-CBB6-4D8E-9FC4-45C7355AF8CA}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
...@@ -26,10 +24,6 @@ Global ...@@ -26,10 +24,6 @@ Global
{179D0A0F-AAC3-4322-92DE-008F91554389}.Debug|Any CPU.Build.0 = Debug|Any CPU {179D0A0F-AAC3-4322-92DE-008F91554389}.Debug|Any CPU.Build.0 = Debug|Any CPU
{179D0A0F-AAC3-4322-92DE-008F91554389}.Release|Any CPU.ActiveCfg = Release|Any CPU {179D0A0F-AAC3-4322-92DE-008F91554389}.Release|Any CPU.ActiveCfg = Release|Any CPU
{179D0A0F-AAC3-4322-92DE-008F91554389}.Release|Any CPU.Build.0 = Release|Any CPU {179D0A0F-AAC3-4322-92DE-008F91554389}.Release|Any CPU.Build.0 = Release|Any CPU
{F1AA9A81-CBB6-4D8E-9FC4-45C7355AF8CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F1AA9A81-CBB6-4D8E-9FC4-45C7355AF8CA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F1AA9A81-CBB6-4D8E-9FC4-45C7355AF8CA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F1AA9A81-CBB6-4D8E-9FC4-45C7355AF8CA}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
...@@ -37,6 +31,8 @@ Global ...@@ -37,6 +31,8 @@ Global
GlobalSection(NestedProjects) = preSolution GlobalSection(NestedProjects) = preSolution
{284367EA-EC93-4060-ABE7-3EF93A5A888C} = {B76348CD-F496-4B6E-A915-82A342AA5150} {284367EA-EC93-4060-ABE7-3EF93A5A888C} = {B76348CD-F496-4B6E-A915-82A342AA5150}
{179D0A0F-AAC3-4322-92DE-008F91554389} = {7A2BFC89-057F-4F8D-ADB7-C7D122B160EF} {179D0A0F-AAC3-4322-92DE-008F91554389} = {7A2BFC89-057F-4F8D-ADB7-C7D122B160EF}
{F1AA9A81-CBB6-4D8E-9FC4-45C7355AF8CA} = {7A2BFC89-057F-4F8D-ADB7-C7D122B160EF} EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1F19CAA0-6CA7-4118-9E91-506DBA12651C}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal
{
"profiles": {
"ApiGatewayDemo": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:4422",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
\ No newline at end of file
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"nacos": {
"ServerAddresses": [ "http://192.168.2.54:8849" ],
"ServiceName": "JYZB3.0",
"DefaultTimeOut": 15000,
//自定义Namespace的Id
"Namespace": "8e6c6559-3b86-4dfa-b817-ad38da91ca37",
"GroupName": "DEFAULT_GROUP",
"ClusterName": "DEFAULT",
"ListenInterval": 1000,
"RegisterEnabled": true,
"InstanceEnabled": true,
"LBStrategy": "WeightRandom",
"NamingUseRpc": true
},
"Routes": [
{
"ServiceName": "JunmpPoliceStation74",
"DownstreamHostAndPorts": [
{
"Host": "192.168.3.188",
"Port": 5000,
"Metadata": {
"weight": "9"
}
},
{
"Host": "192.168.2.54",
"Port": 5000,
"Metadata": {
"weight": "1"
}
}
],
// Uri方案,http、https
"DownstreamScheme": "http",
// 下游(服务提供方)服务路由模板
"DownstreamPathTemplate": "/api/{everything}",
// 上游(客户端,服务消费方)请求路由模板
"UpstreamPathTemplate": "/service/{everything}",
"UpstreamHttpMethod": [ "Get", "Post" ],
"LoadBalancerOptions": {
"Type": "CustomerBalancer"
},
"UseServiceDiscovery": true
}
],
"GlobalConfiguration": {
"ServiceDiscoveryProvider": {
"Type": "Nacos"
}
}
}
{
// 转发路由,数组中的每个元素都是某个服务的一组路由转发规则
"Routes": [
{
"ServiceName": "JunmpPoliceStation74",
"DownstreamHostAndPorts": [
{
"Host": "192.168.3.188",
"Port": 5000,
"Metadata": {
"weight": "9"
}
},
{
"Host": "192.168.2.54",
"Port": 5000,
"Metadata": {
"weight": "1"
}
}
],
// Uri方案,http、https
"DownstreamScheme": "http",
// 下游(服务提供方)服务路由模板
"DownstreamPathTemplate": "/api/{everything}",
// 上游(客户端,服务消费方)请求路由模板
"UpstreamPathTemplate": "/service/{everything}",
"UpstreamHttpMethod": [ "Get", "Post" ],
"LoadBalancerOptions": {
"Type": "RoundRobinWithWeightedHosts"
},
"UseServiceDiscovery": true
}
],
"GlobalConfiguration": {
"ServiceDiscoveryProvider": {
"Type": "Nacos"
}
}
}
\ No newline at end of file
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "7.0.4",
"commands": [
"dotnet-ef"
]
}
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net7.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<AssemblyName>ApiGatewayDemo</AssemblyName> <AssemblyName>ApiGateway</AssemblyName>
<GenerateDocumentationFile>True</GenerateDocumentationFile> <GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="nacos-sdk-csharp" Version="1.3.4" />
<PackageReference Include="nacos-sdk-csharp.AspNetCore" Version="1.3.4" />
<PackageReference Include="nacos-sdk-csharp.Extensions.Configuration" Version="1.3.4" />
<PackageReference Include="nacos-sdk-csharp.IniParser" Version="1.3.4" />
<PackageReference Include="nacos-sdk-csharp.YamlParser" Version="1.3.4" />
<PackageReference Include="NLog.Web.AspNetCore" Version="5.2.3" />
<PackageReference Include="Ocelot" Version="18.0.0" /> <PackageReference Include="Ocelot" Version="18.0.0" />
</ItemGroup> </ItemGroup>
...@@ -14,11 +20,16 @@ ...@@ -14,11 +20,16 @@
<ProjectReference Include="..\..\src\Ocelot.Provider.Nacos\Ocelot.Provider.Nacos.csproj" /> <ProjectReference Include="..\..\src\Ocelot.Provider.Nacos\Ocelot.Provider.Nacos.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Update="ocelotconfig.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Condition="'$(ExcludeConfigFilesFromBuildOutput)'!='true'" Update="appsettings.json"> <Content Condition="'$(ExcludeConfigFilesFromBuildOutput)'!='true'" Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Update="nlog.config.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Properties\launchSettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project> </Project>
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Google.Protobuf.WellKnownTypes; using Google.Protobuf.WellKnownTypes;
...@@ -8,25 +9,43 @@ using Microsoft.Extensions.Configuration; ...@@ -8,25 +9,43 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace ApiGatewayDemo namespace ApiGateway
{ {
public class Program public class Program
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
var logger = NLog.Web.NLogBuilder.ConfigureNLog(AppContext.BaseDirectory + "nlog.config.xml").GetCurrentClassLogger();
try
{
CreateHostBuilder(args).Build().Run(); CreateHostBuilder(args).Build().Run();
} }
catch (Exception ex)
{
logger.Error(ex);
}
}
public static IHostBuilder CreateHostBuilder(string[] args) => public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args) Host.CreateDefaultBuilder(args)
.UseNacosConfig(section: "Nacos", parser: null, logAction: null)
.ConfigureWebHostDefaults(webBuilder => .ConfigureWebHostDefaults(webBuilder =>
{ {
var config = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", optional: true)
.Build();
webBuilder.UseStartup<Startup>(); webBuilder.UseStartup<Startup>();
webBuilder.UseConfiguration(config);
}).ConfigureAppConfiguration(builder=> { }).ConfigureAppConfiguration(builder=> {
builder.AddJsonFile("appsettings.json", true, true);
//builder.AddJsonFile("ocelotconfig.json", true, true);
}); });
} }
} }
{
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "http://192.168.3.188:3993/nacos",
"applicationUrl": "http://192.168.3.1:5000;http://192.168.10.88:5000;http://localhost:5001;http://localhost:5000;"
},
"WSL": {
"commandName": "WSL2",
"launchBrowser": true,
"launchUrl": "http://localhost:6003",
"environmentVariables": {
"ASPNETCORE_URLS": "http://localhost:6003"
},
"distributionName": ""
},
"ApiGateway": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:6003"
}
},
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:28174/",
"sslPort": 44389
}
}
}
\ No newline at end of file
...@@ -2,12 +2,14 @@ using System; ...@@ -2,12 +2,14 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using ApiGateway;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using Nacos.AspNetCore.V2;
using Ocelot.Configuration; using Ocelot.Configuration;
using Ocelot.DependencyInjection; using Ocelot.DependencyInjection;
using Ocelot.LoadBalancer.LoadBalancers; using Ocelot.LoadBalancer.LoadBalancers;
...@@ -16,7 +18,7 @@ using Ocelot.Provider.Nacos; ...@@ -16,7 +18,7 @@ using Ocelot.Provider.Nacos;
using Ocelot.ServiceDiscovery; using Ocelot.ServiceDiscovery;
using Ocelot.ServiceDiscovery.Providers; using Ocelot.ServiceDiscovery.Providers;
namespace ApiGatewayDemo namespace ApiGateway
{ {
public class Startup public class Startup
{ {
...@@ -26,34 +28,19 @@ namespace ApiGatewayDemo ...@@ -26,34 +28,19 @@ namespace ApiGatewayDemo
} }
public IConfiguration Configuration { get; } public IConfiguration Configuration { get; }
Func<IServiceProvider, DownstreamRoute, IServiceDiscoveryProvider, CustomerBalancer> loadBalancerFactoryFunc = (serviceProvider, Route, serviceDiscoveryProvider) => new CustomerBalancer(serviceDiscoveryProvider.Get); Func<IServiceProvider, DownstreamRoute, IServiceDiscoveryProvider, WeightRandom> loadBalancerFactoryFunc = (serviceProvider, Route, serviceDiscoveryProvider) => new WeightRandom(serviceDiscoveryProvider.Get);
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
//services.AddOcelot().AddNacosDiscovery(); //services.AddOcelot().AddNacosDiscovery();
services.AddOcelot(Configuration) services.AddOcelot(Configuration)
.AddNacosDiscovery() .AddNacosDiscovery()
.AddCustomLoadBalancer(loadBalancerFactoryFunc); .AddCustomLoadBalancer(loadBalancerFactoryFunc);
//services.AddOcelot().add(); services.AddNacosAspNet(Configuration, "nacos");
} }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{ {
//if (env.IsDevelopment())
//{
// app.UseDeveloperExceptionPage();
//}
//app.UseRouting();
//app.UseEndpoints(endpoints =>
//{
// endpoints.MapGet("/", async context =>
// {
// await context.Response.WriteAsync("Hello World!");
// });
//});
app.UseOcelot().Wait(); app.UseOcelot().Wait();
} }
......
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Ocelot.LoadBalancer.LoadBalancers; using Ocelot.LoadBalancer.LoadBalancers;
using Ocelot.Responses; using Ocelot.Responses;
using Ocelot.Values; using Ocelot.Values;
using System.Collections.Generic;
using System.Threading.Tasks;
using System; using System;
using Ocelot.DownstreamRouteFinder.Finder; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks;
namespace ApiGatewayDemo namespace ApiGateway
{ {
/// <summary> /// <summary>
/// 自定义负载均衡策略 /// 自定 义负载均衡策略
/// </summary> /// </summary>
public class CustomerBalancer : ILoadBalancer public class WeightRandom : ILoadBalancer
{ {
private readonly Func<Task<List<Service>>> _services; private readonly IConfiguration _configuration;
private readonly object _lock = new object(); private readonly object _lock = new object();
private readonly Func<Task<List<Service>>> _services;
private int _last; private int _last;
public CustomerBalancer(Func<Task<List<Service>>> services)
public WeightRandom(Func<Task<List<Service>>> services)
{ {
_services = services; _services = services;
} }
public async Task<Response<ServiceHostAndPort>> Lease(HttpContext httpContext) public async Task<Response<ServiceHostAndPort>> Lease(HttpContext httpContext)
{ {
var services = await _services(); //var config = _configuration["appName"];
var services = await
_services();
if (services == null || services.Count == 0) if (services == null ||
services.Count == 0)
{ {
return null; return null;
} }
...@@ -63,7 +67,6 @@ namespace ApiGatewayDemo ...@@ -63,7 +67,6 @@ namespace ApiGatewayDemo
public void Release(ServiceHostAndPort hostAndPort) public void Release(ServiceHostAndPort hostAndPort)
{ {
} }
} }
} }
\ No newline at end of file
{
"Nacos": {
"Listeners": [
{
"Optional": false,
"DataId": "ApiGateway",
"Group": "DEFAULT_GROUP"
}
],
"Namespace": "8e6c6559-3b86-4dfa-b817-ad38da91ca37", // Please set the value of Namespace ID !!!!!!!!: null,
"ServerAddresses": [ "http://192.168.3.188:3993" ],
"UserName": "nacos",
"Password": "nacos",
//"AccessKey": "",
//"SecretKey": "",
"ConfigUseRpc": false,
"NamingUseRpc": false
}
//"Kestrel": {
// "Endpoints": {
// "Https": {
// "Url": "https://*:9601"
// },
// "Http": {
// "Url": "http://*:9600"
// }
// }
//}
}
2023-03-30 13:36:33.4610 Info Message Template Auto Format enabled
2023-03-30 13:36:33.4923 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 13:36:33.4923 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 13:36:33.5049 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 13:36:33.5049 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 13:36:33.5184 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 13:36:33.5184 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 13:36:33.5184 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 13:36:33.5184 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 13:36:33.5184 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 13:36:33.5184 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 13:36:33.5184 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 13:36:33.5184 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 13:36:33.5184 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 13:36:33.5184 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 13:36:33.5184 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 13:36:33.5184 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 13:36:33.5184 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 13:36:33.5184 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 13:36:33.5184 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 13:36:33.5184 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 13:36:33.5184 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 13:36:33.5184 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 13:36:33.5184 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 13:36:33.5184 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 13:36:33.5184 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 13:36:33.5184 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 13:36:33.5184 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 13:36:33.5402 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 13:36:33.5402 Debug --- NLog configuration dump ---
2023-03-30 13:36:33.5402 Debug Targets:
2023-03-30 13:36:33.5402 Debug FileTarget(Name=file)
2023-03-30 13:36:33.5402 Debug FileTarget(Name=Debug)
2023-03-30 13:36:33.5402 Debug FileTarget(Name=Error)
2023-03-30 13:36:33.5402 Debug FileTarget(Name=Information)
2023-03-30 13:36:33.5402 Debug NullTarget(Name=blackhole)
2023-03-30 13:36:33.5402 Debug Rules:
2023-03-30 13:36:33.5457 Debug logNamePattern: (JunmpPoliceStation.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 13:36:33.5457 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 13:36:33.5457 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 13:36:33.5457 Debug --- End of NLog configuration dump ---
2023-03-30 13:36:33.5457 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 13:36:33.5457 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 13:36:33.5457 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 13:36:33.5457 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 13:36:33.5457 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 13:36:33.5768 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 13:36:33.5768 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 13:36:33.5768 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:20:01.2092 Info Message Template Auto Format enabled
2023-03-30 14:20:01.2377 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:20:01.2377 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:20:01.2504 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:20:01.2504 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:20:01.2744 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:20:01.2744 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:20:01.2744 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:20:01.2744 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:20:01.2744 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:20:01.2744 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:20:01.2744 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:20:01.2744 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:20:01.2744 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:20:01.2744 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:20:01.2803 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:20:01.2803 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:20:01.2803 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:20:01.2803 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:20:01.2803 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:20:01.2803 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:20:01.2803 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:20:01.2803 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:20:01.2803 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:20:01.2803 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:20:01.2803 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:20:01.2803 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:20:01.2803 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:20:01.3151 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:20:01.3151 Debug --- NLog configuration dump ---
2023-03-30 14:20:01.3151 Debug Targets:
2023-03-30 14:20:01.3151 Debug FileTarget(Name=file)
2023-03-30 14:20:01.3151 Debug FileTarget(Name=Debug)
2023-03-30 14:20:01.3151 Debug FileTarget(Name=Error)
2023-03-30 14:20:01.3151 Debug FileTarget(Name=Information)
2023-03-30 14:20:01.3151 Debug NullTarget(Name=blackhole)
2023-03-30 14:20:01.3151 Debug Rules:
2023-03-30 14:20:01.3151 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:20:01.3151 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:20:01.3151 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:20:01.3151 Debug --- End of NLog configuration dump ---
2023-03-30 14:20:01.3427 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:20:01.3427 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:20:01.3427 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:20:01.3427 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:20:01.3427 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:20:01.3799 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:20:01.3799 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:20:01.3799 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:20:03.1415 Debug FileTarget(Name=Error): Preparing for new file: 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\Nlogs/Error/nlog-Error-2023-03-30.log'
2023-03-30 14:20:03.1415 Debug FileTarget(Name=Error): Creating file appender: 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\Nlogs/Error/nlog-Error-2023-03-30.log'
2023-03-30 14:20:03.1415 Debug FileTarget(Name=Error): DirectoryNotFoundException - Attempting to create directory for FileName: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\Nlogs/Error/nlog-Error-2023-03-30.log
2023-03-30 14:20:03.1635 Info AppDomain Shutting down. LogFactory closing...
2023-03-30 14:20:03.1738 Debug Stopping file watching for path 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0' filter 'nlog.config.xml'
2023-03-30 14:20:03.1990 Debug Flush completed
2023-03-30 14:20:03.1990 Debug Targets not configured for Logger: ApiGateway.Program
2023-03-30 14:20:03.1990 Debug Closing logging configuration...
2023-03-30 14:20:03.2018 Debug FileTarget(Name=Debug): Closing...
2023-03-30 14:20:03.2018 Debug FileTarget(Name=Debug): Closed.
2023-03-30 14:20:03.2018 Debug FileTarget(Name=Error): Closing...
2023-03-30 14:20:03.2018 Debug FileTarget(Name=Error): FileAppender Closing Invalidate - C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\Nlogs/Error/nlog-Error-2023-03-30.log
2023-03-30 14:20:03.2018 Debug FileTarget(Name=Error): Closed.
2023-03-30 14:20:03.2018 Debug NullTarget(Name=blackhole): Closing...
2023-03-30 14:20:03.2018 Debug NullTarget(Name=blackhole): Closed.
2023-03-30 14:20:03.2018 Debug FileTarget(Name=file): Closing...
2023-03-30 14:20:03.2018 Debug FileTarget(Name=file): Closed.
2023-03-30 14:20:03.2018 Debug FileTarget(Name=Information): Closing...
2023-03-30 14:20:03.2018 Debug FileTarget(Name=Information): Closed.
2023-03-30 14:20:03.2018 Debug Finished closing logging configuration.
2023-03-30 14:20:03.2018 Info LogFactory has been closed.
2023-03-30 14:24:04.8297 Info Message Template Auto Format enabled
2023-03-30 14:24:04.8579 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:24:04.8579 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:24:04.8749 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:24:04.8749 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:24:04.8946 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:24:04.8946 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:24:04.8946 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:24:04.8946 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:24:04.8946 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:24:04.8946 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:24:04.8946 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:24:04.8946 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:24:04.8946 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:24:04.8946 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:24:04.8946 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:24:04.8946 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:24:04.8946 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:24:04.8946 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:24:04.8946 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:24:04.8946 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:24:04.8946 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:24:04.8946 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:24:04.8946 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:24:04.8946 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:24:04.8946 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:24:04.8946 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:24:04.8946 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:24:04.9199 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:24:04.9213 Debug --- NLog configuration dump ---
2023-03-30 14:24:04.9213 Debug Targets:
2023-03-30 14:24:04.9213 Debug FileTarget(Name=file)
2023-03-30 14:24:04.9213 Debug FileTarget(Name=Debug)
2023-03-30 14:24:04.9213 Debug FileTarget(Name=Error)
2023-03-30 14:24:04.9213 Debug FileTarget(Name=Information)
2023-03-30 14:24:04.9213 Debug NullTarget(Name=blackhole)
2023-03-30 14:24:04.9213 Debug Rules:
2023-03-30 14:24:04.9213 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:24:04.9213 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:24:04.9213 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:24:04.9213 Debug --- End of NLog configuration dump ---
2023-03-30 14:24:04.9213 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:24:04.9213 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:24:04.9373 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:24:04.9373 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:24:04.9373 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:24:04.9570 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:24:04.9570 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:24:04.9570 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:24:10.1456 Debug FileTarget(Name=Error): Preparing for new file: 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\Nlogs/Error/nlog-Error-2023-03-30.log'
2023-03-30 14:24:10.1554 Debug FileTarget(Name=Error): Creating file appender: 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\Nlogs/Error/nlog-Error-2023-03-30.log'
2023-03-30 14:24:10.1554 Info AppDomain Shutting down. LogFactory closing...
2023-03-30 14:24:10.1554 Debug Stopping file watching for path 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0' filter 'nlog.config.xml'
2023-03-30 14:24:10.1793 Debug Flush completed
2023-03-30 14:24:10.1793 Debug Targets not configured for Logger: ApiGateway.Program
2023-03-30 14:24:10.1793 Debug Closing logging configuration...
2023-03-30 14:24:10.1793 Debug FileTarget(Name=Debug): Closing...
2023-03-30 14:24:10.1793 Debug FileTarget(Name=Debug): Closed.
2023-03-30 14:24:10.1793 Debug FileTarget(Name=Error): Closing...
2023-03-30 14:24:10.1879 Debug FileTarget(Name=Error): FileAppender Closing Invalidate - C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\Nlogs/Error/nlog-Error-2023-03-30.log
2023-03-30 14:24:10.1879 Debug FileTarget(Name=Error): Closed.
2023-03-30 14:24:10.1879 Debug NullTarget(Name=blackhole): Closing...
2023-03-30 14:24:10.1879 Debug NullTarget(Name=blackhole): Closed.
2023-03-30 14:24:10.1879 Debug FileTarget(Name=file): Closing...
2023-03-30 14:24:10.1879 Debug FileTarget(Name=file): Closed.
2023-03-30 14:24:10.1879 Debug FileTarget(Name=Information): Closing...
2023-03-30 14:24:10.1879 Debug FileTarget(Name=Information): Closed.
2023-03-30 14:24:10.1879 Debug Finished closing logging configuration.
2023-03-30 14:24:10.1879 Info LogFactory has been closed.
2023-03-30 14:24:26.3677 Info Message Template Auto Format enabled
2023-03-30 14:24:26.3996 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:24:26.3996 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:24:26.4145 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:24:26.4145 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:24:26.4316 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:24:26.4316 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:24:26.4316 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:24:26.4316 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:24:26.4316 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:24:26.4316 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:24:26.4316 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:24:26.4316 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:24:26.4316 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:24:26.4316 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:24:26.4316 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:24:26.4356 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:24:26.4356 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:24:26.4356 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:24:26.4356 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:24:26.4356 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:24:26.4356 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:24:26.4356 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:24:26.4356 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:24:26.4356 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:24:26.4356 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:24:26.4356 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:24:26.4356 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:24:26.4565 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:24:26.4565 Debug --- NLog configuration dump ---
2023-03-30 14:24:26.4565 Debug Targets:
2023-03-30 14:24:26.4565 Debug FileTarget(Name=file)
2023-03-30 14:24:26.4565 Debug FileTarget(Name=Debug)
2023-03-30 14:24:26.4565 Debug FileTarget(Name=Error)
2023-03-30 14:24:26.4565 Debug FileTarget(Name=Information)
2023-03-30 14:24:26.4565 Debug NullTarget(Name=blackhole)
2023-03-30 14:24:26.4565 Debug Rules:
2023-03-30 14:24:26.4565 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:24:26.4565 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:24:26.4565 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:24:26.4565 Debug --- End of NLog configuration dump ---
2023-03-30 14:24:26.4722 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:24:26.4722 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:24:26.4722 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:24:26.4722 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:24:26.4722 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:24:26.5103 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:24:26.5103 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:24:26.5145 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:26:49.1515 Info Message Template Auto Format enabled
2023-03-30 14:26:49.1815 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:26:49.1815 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:26:49.1976 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:26:49.1976 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:26:49.2169 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:26:49.2190 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:26:49.2190 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:26:49.2190 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:26:49.2190 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:26:49.2190 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:26:49.2190 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:26:49.2190 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:26:49.2190 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:26:49.2190 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:26:49.2190 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:26:49.2190 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:26:49.2190 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:26:49.2190 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:26:49.2190 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:26:49.2190 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:26:49.2190 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:26:49.2190 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:26:49.2190 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:26:49.2190 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:26:49.2190 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:26:49.2190 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:26:49.2190 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:26:49.2434 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:26:49.2434 Debug --- NLog configuration dump ---
2023-03-30 14:26:49.2434 Debug Targets:
2023-03-30 14:26:49.2434 Debug FileTarget(Name=file)
2023-03-30 14:26:49.2434 Debug FileTarget(Name=Debug)
2023-03-30 14:26:49.2434 Debug FileTarget(Name=Error)
2023-03-30 14:26:49.2434 Debug FileTarget(Name=Information)
2023-03-30 14:26:49.2434 Debug NullTarget(Name=blackhole)
2023-03-30 14:26:49.2434 Debug Rules:
2023-03-30 14:26:49.2496 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:26:49.2496 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:26:49.2496 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:26:49.2496 Debug --- End of NLog configuration dump ---
2023-03-30 14:26:49.2496 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:26:49.2496 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:26:49.2663 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:26:49.2663 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:26:49.2663 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:26:49.2865 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:26:49.2865 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:26:49.2865 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:27:21.5210 Info Message Template Auto Format enabled
2023-03-30 14:27:21.5502 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:27:21.5502 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:27:21.5641 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:27:21.5641 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:27:21.5785 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:27:21.5785 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:27:21.5785 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:27:21.5785 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:27:21.5785 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:27:21.5785 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:27:21.5785 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:27:21.5785 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:27:21.5785 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:27:21.5785 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:27:21.5785 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:27:21.5785 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:27:21.5785 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:27:21.5785 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:27:21.5785 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:27:21.5785 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:27:21.5785 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:27:21.5785 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:27:21.5785 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:27:21.5785 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:27:21.5785 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:27:21.5785 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:27:21.5785 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:27:21.6033 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:27:21.6033 Debug --- NLog configuration dump ---
2023-03-30 14:27:21.6033 Debug Targets:
2023-03-30 14:27:21.6033 Debug FileTarget(Name=file)
2023-03-30 14:27:21.6033 Debug FileTarget(Name=Debug)
2023-03-30 14:27:21.6033 Debug FileTarget(Name=Error)
2023-03-30 14:27:21.6033 Debug FileTarget(Name=Information)
2023-03-30 14:27:21.6076 Debug NullTarget(Name=blackhole)
2023-03-30 14:27:21.6076 Debug Rules:
2023-03-30 14:27:21.6076 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:27:21.6076 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:27:21.6076 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:27:21.6076 Debug --- End of NLog configuration dump ---
2023-03-30 14:27:21.6076 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:27:21.6076 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:27:21.6244 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:27:21.6244 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:27:21.6244 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:27:21.6549 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:27:21.6549 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:27:21.6549 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:28:36.3279 Info Message Template Auto Format enabled
2023-03-30 14:28:36.3517 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:28:36.3517 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:28:36.3641 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:28:36.3641 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:28:36.3776 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:28:36.3776 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:28:36.3776 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:28:36.3776 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:28:36.3776 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:28:36.3776 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:28:36.3776 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:28:36.3776 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:28:36.3776 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:28:36.3776 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:28:36.3776 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:28:36.3776 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:28:36.3776 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:28:36.3776 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:28:36.3776 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:28:36.3776 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:28:36.3776 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:28:36.3776 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:28:36.3776 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:28:36.3776 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:28:36.3776 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:28:36.3776 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:28:36.3776 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:28:36.4011 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:28:36.4011 Debug --- NLog configuration dump ---
2023-03-30 14:28:36.4011 Debug Targets:
2023-03-30 14:28:36.4011 Debug FileTarget(Name=file)
2023-03-30 14:28:36.4011 Debug FileTarget(Name=Debug)
2023-03-30 14:28:36.4048 Debug FileTarget(Name=Error)
2023-03-30 14:28:36.4048 Debug FileTarget(Name=Information)
2023-03-30 14:28:36.4048 Debug NullTarget(Name=blackhole)
2023-03-30 14:28:36.4048 Debug Rules:
2023-03-30 14:28:36.4048 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:28:36.4048 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:28:36.4048 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:28:36.4048 Debug --- End of NLog configuration dump ---
2023-03-30 14:28:36.4048 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:28:36.4048 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:28:36.4228 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:28:36.4228 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:28:36.4228 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:28:36.4444 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:28:36.4444 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:28:36.4444 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:28:48.7915 Info AppDomain Shutting down. LogFactory closing...
2023-03-30 14:28:48.7951 Debug Stopping file watching for path 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0' filter 'nlog.config.xml'
2023-03-30 14:28:48.7951 Debug Flush completed
2023-03-30 14:28:48.7951 Debug Targets not configured for Logger: ApiGateway.Program
2023-03-30 14:28:48.7951 Debug Closing logging configuration...
2023-03-30 14:28:48.7951 Debug FileTarget(Name=Debug): Closing...
2023-03-30 14:28:48.7951 Debug FileTarget(Name=Debug): Closed.
2023-03-30 14:28:48.7951 Debug FileTarget(Name=Error): Closing...
2023-03-30 14:28:48.7951 Debug FileTarget(Name=Error): Closed.
2023-03-30 14:28:48.7951 Debug NullTarget(Name=blackhole): Closing...
2023-03-30 14:28:48.7951 Debug NullTarget(Name=blackhole): Closed.
2023-03-30 14:28:48.7951 Debug FileTarget(Name=file): Closing...
2023-03-30 14:28:48.7951 Debug FileTarget(Name=file): Closed.
2023-03-30 14:28:48.7951 Debug FileTarget(Name=Information): Closing...
2023-03-30 14:28:48.7951 Debug FileTarget(Name=Information): Closed.
2023-03-30 14:28:48.7951 Debug Finished closing logging configuration.
2023-03-30 14:28:48.7951 Info LogFactory has been closed.
2023-03-30 14:30:43.4461 Info Message Template Auto Format enabled
2023-03-30 14:30:43.4737 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:30:43.4737 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:30:43.4865 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:30:43.4865 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:30:43.5022 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:30:43.5022 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:30:43.5022 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:30:43.5022 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:30:43.5022 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:30:43.5022 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:30:43.5022 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:30:43.5022 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:30:43.5022 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:30:43.5022 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:30:43.5022 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:30:43.5022 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:30:43.5022 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:30:43.5022 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:30:43.5022 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:30:43.5022 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:30:43.5022 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:30:43.5022 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:30:43.5022 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:30:43.5022 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:30:43.5022 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:30:43.5022 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:30:43.5022 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:30:43.5240 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:30:43.5240 Debug --- NLog configuration dump ---
2023-03-30 14:30:43.5240 Debug Targets:
2023-03-30 14:30:43.5240 Debug FileTarget(Name=file)
2023-03-30 14:30:43.5240 Debug FileTarget(Name=Debug)
2023-03-30 14:30:43.5240 Debug FileTarget(Name=Error)
2023-03-30 14:30:43.5240 Debug FileTarget(Name=Information)
2023-03-30 14:30:43.5240 Debug NullTarget(Name=blackhole)
2023-03-30 14:30:43.5240 Debug Rules:
2023-03-30 14:30:43.5295 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:30:43.5295 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:30:43.5295 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:30:43.5295 Debug --- End of NLog configuration dump ---
2023-03-30 14:30:43.5295 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:30:43.5295 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:30:43.5295 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:30:43.5295 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:30:43.5295 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:30:43.5701 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:30:43.5701 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:30:43.5701 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:32:08.4823 Info Message Template Auto Format enabled
2023-03-30 14:32:08.5059 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:32:08.5059 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:32:08.5171 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:32:08.5171 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:32:08.5299 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:32:08.5299 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:32:08.5299 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:32:08.5299 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:32:08.5299 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:32:08.5299 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:32:08.5299 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:32:08.5299 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:32:08.5299 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:32:08.5299 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:32:08.5299 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:32:08.5299 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:32:08.5299 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:32:08.5299 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:32:08.5299 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:32:08.5299 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:32:08.5299 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:32:08.5299 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:32:08.5299 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:32:08.5299 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:32:08.5299 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:32:08.5299 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:32:08.5299 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:32:08.5506 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:32:08.5506 Debug --- NLog configuration dump ---
2023-03-30 14:32:08.5506 Debug Targets:
2023-03-30 14:32:08.5506 Debug FileTarget(Name=file)
2023-03-30 14:32:08.5506 Debug FileTarget(Name=Debug)
2023-03-30 14:32:08.5506 Debug FileTarget(Name=Error)
2023-03-30 14:32:08.5506 Debug FileTarget(Name=Information)
2023-03-30 14:32:08.5506 Debug NullTarget(Name=blackhole)
2023-03-30 14:32:08.5506 Debug Rules:
2023-03-30 14:32:08.5506 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:32:08.5506 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:32:08.5506 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:32:08.5506 Debug --- End of NLog configuration dump ---
2023-03-30 14:32:08.5648 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:32:08.5648 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:32:08.5648 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:32:08.5648 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:32:08.5648 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:32:08.5891 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:32:08.5891 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:32:08.5891 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:32:20.4905 Info AppDomain Shutting down. LogFactory closing...
2023-03-30 14:32:20.4905 Debug Stopping file watching for path 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0' filter 'nlog.config.xml'
2023-03-30 14:32:20.4996 Debug Flush completed
2023-03-30 14:32:20.4996 Debug Targets not configured for Logger: ApiGateway.Program
2023-03-30 14:32:20.4996 Debug Closing logging configuration...
2023-03-30 14:32:20.4996 Debug FileTarget(Name=Debug): Closing...
2023-03-30 14:32:20.4996 Debug FileTarget(Name=Debug): Closed.
2023-03-30 14:32:20.4996 Debug FileTarget(Name=Error): Closing...
2023-03-30 14:32:20.4996 Debug FileTarget(Name=Error): Closed.
2023-03-30 14:32:20.4996 Debug NullTarget(Name=blackhole): Closing...
2023-03-30 14:32:20.4996 Debug NullTarget(Name=blackhole): Closed.
2023-03-30 14:32:20.4996 Debug FileTarget(Name=file): Closing...
2023-03-30 14:32:20.4996 Debug FileTarget(Name=file): Closed.
2023-03-30 14:32:20.4996 Debug FileTarget(Name=Information): Closing...
2023-03-30 14:32:20.4996 Debug FileTarget(Name=Information): Closed.
2023-03-30 14:32:20.4996 Debug Finished closing logging configuration.
2023-03-30 14:32:20.4996 Info LogFactory has been closed.
2023-03-30 14:36:00.8335 Info Message Template Auto Format enabled
2023-03-30 14:36:00.8850 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:36:00.8907 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:36:00.9071 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:36:00.9071 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:36:00.9313 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:36:00.9313 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:36:00.9313 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:36:00.9313 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:36:00.9313 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:36:00.9313 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:36:00.9313 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:36:00.9360 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:36:00.9360 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:36:00.9360 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:36:00.9360 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:36:00.9360 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:36:00.9360 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:36:00.9360 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:36:00.9360 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:36:00.9360 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:36:00.9360 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:36:00.9360 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:36:00.9360 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:36:00.9360 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:36:00.9360 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:36:00.9360 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:36:00.9360 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:36:00.9681 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:36:00.9681 Debug --- NLog configuration dump ---
2023-03-30 14:36:00.9681 Debug Targets:
2023-03-30 14:36:00.9681 Debug FileTarget(Name=file)
2023-03-30 14:36:00.9681 Debug FileTarget(Name=Debug)
2023-03-30 14:36:00.9681 Debug FileTarget(Name=Error)
2023-03-30 14:36:00.9681 Debug FileTarget(Name=Information)
2023-03-30 14:36:00.9681 Debug NullTarget(Name=blackhole)
2023-03-30 14:36:00.9681 Debug Rules:
2023-03-30 14:36:00.9681 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:36:00.9681 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:36:00.9681 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:36:00.9681 Debug --- End of NLog configuration dump ---
2023-03-30 14:36:00.9892 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:36:00.9892 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:36:00.9986 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:36:00.9986 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:36:00.9986 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:36:01.0213 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:36:01.0213 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:36:01.0213 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:36:19.9263 Info AppDomain Shutting down. LogFactory closing...
2023-03-30 14:36:19.9263 Debug Stopping file watching for path 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0' filter 'nlog.config.xml'
2023-03-30 14:36:19.9400 Debug Flush completed
2023-03-30 14:36:19.9400 Debug Targets not configured for Logger: ApiGateway.Program
2023-03-30 14:36:19.9400 Debug Closing logging configuration...
2023-03-30 14:36:19.9400 Debug FileTarget(Name=Debug): Closing...
2023-03-30 14:36:19.9400 Debug FileTarget(Name=Debug): Closed.
2023-03-30 14:36:19.9400 Debug FileTarget(Name=Error): Closing...
2023-03-30 14:36:19.9400 Debug FileTarget(Name=Error): Closed.
2023-03-30 14:36:19.9400 Debug NullTarget(Name=blackhole): Closing...
2023-03-30 14:36:19.9400 Debug NullTarget(Name=blackhole): Closed.
2023-03-30 14:36:19.9400 Debug FileTarget(Name=file): Closing...
2023-03-30 14:36:19.9400 Debug FileTarget(Name=file): Closed.
2023-03-30 14:36:19.9400 Debug FileTarget(Name=Information): Closing...
2023-03-30 14:36:19.9400 Debug FileTarget(Name=Information): Closed.
2023-03-30 14:36:19.9400 Debug Finished closing logging configuration.
2023-03-30 14:36:19.9400 Info LogFactory has been closed.
2023-03-30 14:37:04.1453 Info Message Template Auto Format enabled
2023-03-30 14:37:04.1628 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:37:04.1628 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:37:04.1736 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:37:04.1736 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:37:04.1860 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:37:04.1860 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:37:04.1860 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:37:04.1860 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:37:04.1860 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:37:04.1860 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:37:04.1860 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:37:04.1860 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:37:04.1860 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:37:04.1860 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:37:04.1860 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:37:04.1860 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:37:04.1860 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:37:04.1860 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:37:04.1860 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:37:04.1860 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:37:04.1860 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:37:04.1860 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:37:04.1860 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:37:04.1860 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:37:04.1860 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:37:04.1860 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:37:04.1860 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:37:04.2033 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:37:04.2033 Debug --- NLog configuration dump ---
2023-03-30 14:37:04.2033 Debug Targets:
2023-03-30 14:37:04.2033 Debug FileTarget(Name=file)
2023-03-30 14:37:04.2033 Debug FileTarget(Name=Debug)
2023-03-30 14:37:04.2033 Debug FileTarget(Name=Error)
2023-03-30 14:37:04.2033 Debug FileTarget(Name=Information)
2023-03-30 14:37:04.2033 Debug NullTarget(Name=blackhole)
2023-03-30 14:37:04.2033 Debug Rules:
2023-03-30 14:37:04.2033 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:37:04.2033 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:37:04.2033 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:37:04.2033 Debug --- End of NLog configuration dump ---
2023-03-30 14:37:04.2033 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:37:04.2183 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:37:04.2183 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:37:04.2183 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:37:04.2183 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:37:04.2360 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:37:04.2360 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:37:04.2360 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:37:26.2962 Info AppDomain Shutting down. LogFactory closing...
2023-03-30 14:37:26.2962 Debug Stopping file watching for path 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0' filter 'nlog.config.xml'
2023-03-30 14:37:26.2962 Debug Flush completed
2023-03-30 14:37:26.2962 Debug Targets not configured for Logger: ApiGateway.Program
2023-03-30 14:37:26.2962 Debug Closing logging configuration...
2023-03-30 14:37:26.2962 Debug FileTarget(Name=Debug): Closing...
2023-03-30 14:37:26.2962 Debug FileTarget(Name=Debug): Closed.
2023-03-30 14:37:26.2962 Debug FileTarget(Name=Error): Closing...
2023-03-30 14:37:26.2962 Debug FileTarget(Name=Error): Closed.
2023-03-30 14:37:26.2962 Debug NullTarget(Name=blackhole): Closing...
2023-03-30 14:37:26.2962 Debug NullTarget(Name=blackhole): Closed.
2023-03-30 14:37:26.2962 Debug FileTarget(Name=file): Closing...
2023-03-30 14:37:26.2962 Debug FileTarget(Name=file): Closed.
2023-03-30 14:37:26.2962 Debug FileTarget(Name=Information): Closing...
2023-03-30 14:37:26.2962 Debug FileTarget(Name=Information): Closed.
2023-03-30 14:37:26.2962 Debug Finished closing logging configuration.
2023-03-30 14:37:26.2962 Info LogFactory has been closed.
2023-03-30 14:44:01.0807 Info Message Template Auto Format enabled
2023-03-30 14:44:01.1044 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:44:01.1044 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:44:01.1157 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:44:01.1157 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:44:01.1286 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:44:01.1286 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:44:01.1286 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:44:01.1286 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:44:01.1286 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:44:01.1286 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:44:01.1286 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:44:01.1286 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:44:01.1286 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:44:01.1286 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:44:01.1286 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:44:01.1286 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:44:01.1286 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:44:01.1286 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:44:01.1286 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:44:01.1286 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:44:01.1286 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:44:01.1286 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:44:01.1286 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:44:01.1286 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:44:01.1286 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:44:01.1286 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:44:01.1286 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:44:01.1492 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:44:01.1492 Debug --- NLog configuration dump ---
2023-03-30 14:44:01.1492 Debug Targets:
2023-03-30 14:44:01.1492 Debug FileTarget(Name=file)
2023-03-30 14:44:01.1492 Debug FileTarget(Name=Debug)
2023-03-30 14:44:01.1492 Debug FileTarget(Name=Error)
2023-03-30 14:44:01.1492 Debug FileTarget(Name=Information)
2023-03-30 14:44:01.1492 Debug NullTarget(Name=blackhole)
2023-03-30 14:44:01.1492 Debug Rules:
2023-03-30 14:44:01.1566 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:44:01.1566 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:44:01.1566 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:44:01.1566 Debug --- End of NLog configuration dump ---
2023-03-30 14:44:01.1566 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:44:01.1566 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:44:01.1737 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:44:01.1737 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:44:01.1737 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:44:01.1995 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:44:01.1995 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:44:01.1995 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:45:09.5569 Info Message Template Auto Format enabled
2023-03-30 14:45:09.5808 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:45:09.5808 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:45:09.5994 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:45:09.5994 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:45:09.6169 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:45:09.6169 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:45:09.6169 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:45:09.6169 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:45:09.6169 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:45:09.6169 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:45:09.6169 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:45:09.6169 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:45:09.6169 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:45:09.6169 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:45:09.6169 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:45:09.6169 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:45:09.6169 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:45:09.6169 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:45:09.6169 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:45:09.6169 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:45:09.6169 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:45:09.6169 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:45:09.6169 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:45:09.6169 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:45:09.6237 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:45:09.6237 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:45:09.6237 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:45:09.6460 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:45:09.6460 Debug --- NLog configuration dump ---
2023-03-30 14:45:09.6460 Debug Targets:
2023-03-30 14:45:09.6460 Debug FileTarget(Name=file)
2023-03-30 14:45:09.6460 Debug FileTarget(Name=Debug)
2023-03-30 14:45:09.6460 Debug FileTarget(Name=Error)
2023-03-30 14:45:09.6460 Debug FileTarget(Name=Information)
2023-03-30 14:45:09.6460 Debug NullTarget(Name=blackhole)
2023-03-30 14:45:09.6460 Debug Rules:
2023-03-30 14:45:09.6460 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:45:09.6460 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:45:09.6460 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:45:09.6460 Debug --- End of NLog configuration dump ---
2023-03-30 14:45:09.6604 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:45:09.6604 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:45:09.6604 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:45:09.6604 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:45:09.6604 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:45:09.6956 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:45:09.6956 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:45:09.6956 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 14:45:29.5217 Info AppDomain Shutting down. LogFactory closing...
2023-03-30 14:45:29.5217 Debug Stopping file watching for path 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0' filter 'nlog.config.xml'
2023-03-30 14:45:29.5385 Debug Flush completed
2023-03-30 14:45:29.5385 Debug Targets not configured for Logger: ApiGateway.Program
2023-03-30 14:45:29.5385 Debug Closing logging configuration...
2023-03-30 14:45:29.5385 Debug FileTarget(Name=Debug): Closing...
2023-03-30 14:45:29.5385 Debug FileTarget(Name=Debug): Closed.
2023-03-30 14:45:29.5385 Debug FileTarget(Name=Error): Closing...
2023-03-30 14:45:29.5385 Debug FileTarget(Name=Error): Closed.
2023-03-30 14:45:29.5385 Debug NullTarget(Name=blackhole): Closing...
2023-03-30 14:45:29.5385 Debug NullTarget(Name=blackhole): Closed.
2023-03-30 14:45:29.5385 Debug FileTarget(Name=file): Closing...
2023-03-30 14:45:29.5385 Debug FileTarget(Name=file): Closed.
2023-03-30 14:45:29.5385 Debug FileTarget(Name=Information): Closing...
2023-03-30 14:45:29.5451 Debug FileTarget(Name=Information): Closed.
2023-03-30 14:45:29.5451 Debug Finished closing logging configuration.
2023-03-30 14:45:29.5451 Info LogFactory has been closed.
2023-03-30 14:46:02.0595 Info Message Template Auto Format enabled
2023-03-30 14:46:02.0851 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 14:46:02.0851 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 14:46:02.0977 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:46:02.0977 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:46:02.1118 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:46:02.1118 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 14:46:02.1118 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 14:46:02.1118 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 14:46:02.1118 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:46:02.1118 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:46:02.1118 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:46:02.1118 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 14:46:02.1118 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 14:46:02.1118 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 14:46:02.1118 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:46:02.1118 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:46:02.1118 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:46:02.1118 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 14:46:02.1118 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 14:46:02.1118 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 14:46:02.1118 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 14:46:02.1118 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 14:46:02.1118 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:46:02.1118 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 14:46:02.1118 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 14:46:02.1118 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:46:02.1118 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 14:46:02.1331 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0
2023-03-30 14:46:02.1331 Debug --- NLog configuration dump ---
2023-03-30 14:46:02.1331 Debug Targets:
2023-03-30 14:46:02.1331 Debug FileTarget(Name=file)
2023-03-30 14:46:02.1331 Debug FileTarget(Name=Debug)
2023-03-30 14:46:02.1331 Debug FileTarget(Name=Error)
2023-03-30 14:46:02.1331 Debug FileTarget(Name=Information)
2023-03-30 14:46:02.1331 Debug NullTarget(Name=blackhole)
2023-03-30 14:46:02.1331 Debug Rules:
2023-03-30 14:46:02.1331 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 14:46:02.1331 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 14:46:02.1331 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 14:46:02.1331 Debug --- End of NLog configuration dump ---
2023-03-30 14:46:02.1452 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\demo\ApiGatewayDemo\bin\Debug\net6.0\nlog.config.xml
2023-03-30 14:46:02.1452 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 14:46:02.1452 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 14:46:02.1452 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 14:46:02.1452 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 14:46:02.1742 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 14:46:02.1742 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 14:46:02.1742 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 15:22:50.4179 Info Message Template Auto Format enabled
2023-03-30 15:22:50.5280 Debug Setting 'NLog.Targets.FileTarget.Name' to 'file'
2023-03-30 15:22:50.5319 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/all/nlog-all-${shortdate}.log'
2023-03-30 15:22:50.5319 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 15:22:50.5480 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 15:22:50.5617 Debug Adding target NLog.Targets.FileTarget(Name=file)
2023-03-30 15:22:50.5617 Info Registered target NLog.Targets.FileTarget(Name=file)
2023-03-30 15:22:50.5617 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Debug'
2023-03-30 15:22:50.5617 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Debug/nlog-Debug-${shortdate}.log'
2023-03-30 15:22:50.5617 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 15:22:50.5617 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 15:22:50.5617 Debug Adding target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 15:22:50.5617 Info Registered target NLog.Targets.FileTarget(Name=Debug)
2023-03-30 15:22:50.5617 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Error'
2023-03-30 15:22:50.5617 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Error/nlog-Error-${shortdate}.log'
2023-03-30 15:22:50.5617 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 15:22:50.5617 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 15:22:50.5617 Debug Adding target NLog.Targets.FileTarget(Name=Error)
2023-03-30 15:22:50.5617 Info Registered target NLog.Targets.FileTarget(Name=Error)
2023-03-30 15:22:50.5617 Debug Setting 'NLog.Targets.FileTarget.Name' to 'Information'
2023-03-30 15:22:50.5617 Debug Setting 'NLog.Targets.FileTarget.FileName' to 'Nlogs/Information/nlog-Information-${shortdate}.log'
2023-03-30 15:22:50.5617 Debug Setting 'NLog.Targets.FileTarget.Layout' to '${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}'
2023-03-30 15:22:50.5617 Debug Setting 'NLog.LayoutRenderers.Wrappers.UppercaseLayoutRendererWrapper.Inner' to '${level}'
2023-03-30 15:22:50.5617 Debug Adding target NLog.Targets.FileTarget(Name=Information)
2023-03-30 15:22:50.5617 Info Registered target NLog.Targets.FileTarget(Name=Information)
2023-03-30 15:22:50.5617 Debug Setting 'NLog.Targets.NullTarget.Name' to 'blackhole'
2023-03-30 15:22:50.5617 Debug Adding target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 15:22:50.5772 Info Registered target NLog.Targets.NullTarget(Name=blackhole)
2023-03-30 15:22:50.6064 Debug Watching file-filter 'nlog.config.xml' in directory: C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\gateWay\ApiGateway\bin\Debug\net6.0
2023-03-30 15:22:50.6095 Debug --- NLog configuration dump ---
2023-03-30 15:22:50.6095 Debug Targets:
2023-03-30 15:22:50.6095 Debug FileTarget(Name=file)
2023-03-30 15:22:50.6095 Debug FileTarget(Name=Debug)
2023-03-30 15:22:50.6095 Debug FileTarget(Name=Error)
2023-03-30 15:22:50.6095 Debug FileTarget(Name=Information)
2023-03-30 15:22:50.6095 Debug NullTarget(Name=blackhole)
2023-03-30 15:22:50.6095 Debug Rules:
2023-03-30 15:22:50.6095 Debug logNamePattern: (APIGateway.:StartsWith) levels: [ Debug ] writeTo: [ Debug ]
2023-03-30 15:22:50.6095 Debug logNamePattern: (:All) levels: [ Error ] writeTo: [ Error ]
2023-03-30 15:22:50.6095 Debug logNamePattern: (Microsoft.:StartsWith) levels: [ Trace Debug Info Warn Error Fatal ] writeTo: [ blackhole ]
2023-03-30 15:22:50.6095 Debug --- End of NLog configuration dump ---
2023-03-30 15:22:50.6242 Info Validating config: TargetNames=Debug, Error, blackhole, ConfigItems=80, FilePath=C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\gateWay\ApiGateway\bin\Debug\net6.0\nlog.config.xml
2023-03-30 15:22:50.6242 Debug Unused target checking is started... Rule Count: 3, Target Count: 5
2023-03-30 15:22:50.6242 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: file
2023-03-30 15:22:50.6242 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: Information
2023-03-30 15:22:50.6242 Debug Unused target checking is completed. Total Rule Count: 3, Total Target Count: 5, Unused Target Count: 2
2023-03-30 15:22:50.6599 Debug Targets configured when LogLevel >= Error for Logger: ApiGateway.Program
2023-03-30 15:22:50.6599 Debug Logger ApiGateway.Program [Error] => Error
2023-03-30 15:22:50.6599 Debug Logger ApiGateway.Program [Fatal] =>
2023-03-30 15:23:00.8229 Info AppDomain Shutting down. LogFactory closing...
2023-03-30 15:23:00.8229 Debug Stopping file watching for path 'C:\开发工具\微服务工具\Ocelot\Ocelot.Provider.Nacos-master\Ocelot.Provider.Nacos-master\gateWay\ApiGateway\bin\Debug\net6.0' filter 'nlog.config.xml'
2023-03-30 15:23:00.8333 Debug Flush completed
2023-03-30 15:23:00.8333 Debug Targets not configured for Logger: ApiGateway.Program
2023-03-30 15:23:00.8333 Debug Closing logging configuration...
2023-03-30 15:23:00.8333 Debug FileTarget(Name=Debug): Closing...
2023-03-30 15:23:00.8333 Debug FileTarget(Name=Debug): Closed.
2023-03-30 15:23:00.8333 Debug FileTarget(Name=Error): Closing...
2023-03-30 15:23:00.8333 Debug FileTarget(Name=Error): Closed.
2023-03-30 15:23:00.8333 Debug NullTarget(Name=blackhole): Closing...
2023-03-30 15:23:00.8333 Debug NullTarget(Name=blackhole): Closed.
2023-03-30 15:23:00.8333 Debug FileTarget(Name=file): Closing...
2023-03-30 15:23:00.8333 Debug FileTarget(Name=file): Closed.
2023-03-30 15:23:00.8333 Debug FileTarget(Name=Information): Closing...
2023-03-30 15:23:00.8333 Debug FileTarget(Name=Information): Closed.
2023-03-30 15:23:00.8333 Debug Finished closing logging configuration.
2023-03-30 15:23:00.8333 Info LogFactory has been closed.
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
internalLogLevel="Debug"
throwExceptions="false"
internalLogFile="internal-nlog.txt">
<targets>
<target xsi:type="File" name="file" fileName="Nlogs/all/nlog-all-${shortdate}.log" layout="${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}" />
<target xsi:type="File" name="Debug" fileName="Nlogs/Debug/nlog-Debug-${shortdate}.log" layout="${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}" />
<target xsi:type="File" name="Error" fileName="Nlogs/Error/nlog-Error-${shortdate}.log" layout="${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}" />
<target xsi:type="File" name="Information" fileName="Nlogs/Information/nlog-Information-${shortdate}.log" layout="${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}" />
<target xsi:type="Null" name="blackhole" />
</targets>
<rules>
<!--<logger name="*" minlevel="Trace" writeTo="file" />-->
<!--<logger name="*" minlevel="Information" maxlevel="Information" writeTo="Information" />-->
<logger name="APIGateway.*" minlevel="Debug" maxlevel="Debug" writeTo="Debug" />
<logger name="*" minlevel="Error" maxlevel="Error" writeTo="Error" />
<!--日志级别:Trace -》Debug-》 Information -》Warning-》 Error-》 Critical-->
<!--排除系统日志-->
<logger name="Microsoft.*" minlevel="Trace" writeTo="blackhole" />
<!--<logger name="Nacos.*" minlevel="Trace" maxlevel="Information" writeTo="blackhole" final="true"/>-->
</rules>
</nlog>
\ No newline at end of file
...@@ -14,10 +14,9 @@ namespace Ocelot.Provider.Nacos ...@@ -14,10 +14,9 @@ namespace Ocelot.Provider.Nacos
public class Nacos : IServiceDiscoveryProvider public class Nacos : IServiceDiscoveryProvider
{ {
private readonly INacosNamingService _client; private readonly INacosNamingService _client;
private readonly string _serviceName;
private readonly string _groupName;
private readonly List<string> _clusters; private readonly List<string> _clusters;
private readonly string _groupName;
private readonly string _serviceName;
public Nacos(string serviceName, INacosNamingService client, IOptions<NacosAspNetOptions> options) public Nacos(string serviceName, INacosNamingService client, IOptions<NacosAspNetOptions> options)
{ {
_serviceName = serviceName; _serviceName = serviceName;
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="nacos-sdk-csharp" Version="1.3.4" /> <PackageReference Include="nacos-sdk-csharp" Version="1.3.4" />
<PackageReference Include="nacos-sdk-csharp.Extensions.Configuration" Version="1.3.4" />
<PackageReference Include="Ocelot" Version="18.0.0" /> <PackageReference Include="Ocelot" Version="18.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="7.0.0" /> <PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="7.0.0" />
<PackageReference Include="EasyCaching.InMemory" Version="1.7.0" /> <PackageReference Include="EasyCaching.InMemory" Version="1.7.0" />
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论