merge from 2023-03-14
This commit is contained in:
@@ -28,6 +28,13 @@ public static class LoggingConfigureExtensions
|
||||
writeError.UseRollbackFileName(Path.GetFileNameWithoutExtension(writeError.CurrentFileName) + "-oops" + Path.GetExtension(writeError.CurrentFileName));
|
||||
};
|
||||
});
|
||||
// 日志监听
|
||||
// services.AddMonitorLogging(options =>
|
||||
//{
|
||||
// options.IgnorePropertyNames = new[] { "Byte" };
|
||||
// options.IgnorePropertyTypes = new[] { typeof(byte[]) };
|
||||
//});
|
||||
|
||||
return services;
|
||||
}
|
||||
private static string LoggerLevelName(LogLevel level)
|
||||
|
||||
@@ -1,31 +1,26 @@
|
||||
using JNPF.API.Entry.Handlers;
|
||||
using IGeekFan.AspNetCore.Knife4jUI;
|
||||
using JNPF.API.Entry.Handlers;
|
||||
using JNPF.Common.Cache;
|
||||
using JNPF.Common.Core.Filter;
|
||||
using JNPF.Common.Core.Handlers;
|
||||
using JNPF.Common.Security;
|
||||
using JNPF.DatabaseAccessor;
|
||||
using JNPF.EventHandler;
|
||||
using JNPF.JsonSerialization;
|
||||
using JNPF.Message.Handlers;
|
||||
using JNPF.SpecificationDocument;
|
||||
using JNPF.TaskScheduler.Interfaces.TaskScheduler;
|
||||
using JNPF.UnifyResult;
|
||||
using JNPF.VisualDev;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Senparc.CO2NET.RegisterServices;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using Senparc.CO2NET;
|
||||
using Senparc.CO2NET.RegisterServices;
|
||||
using Senparc.Weixin;
|
||||
using Senparc.Weixin.Entities;
|
||||
using Senparc.Weixin.RegisterServices;
|
||||
using SqlSugar;
|
||||
using IGeekFan.AspNetCore.Knife4jUI;
|
||||
using JNPF.SpecificationDocument;
|
||||
using JNPF.Logging;
|
||||
using System.Xml;
|
||||
using System;
|
||||
using System.Text;
|
||||
using Top.Api;
|
||||
using JNPF.Common.Security;
|
||||
using JNPF.VisualDev;
|
||||
|
||||
namespace JNPF.API.Entry;
|
||||
|
||||
@@ -137,12 +132,6 @@ public class Startup : AppStartup
|
||||
services.AddMemoryCache(); // 使用本地缓存必须添加
|
||||
|
||||
services.LoggingConfigure();
|
||||
// 日志监听
|
||||
// services.AddMonitorLogging(options =>
|
||||
//{
|
||||
// options.IgnorePropertyNames = new[] { "Byte" };
|
||||
// options.IgnorePropertyTypes = new[] { typeof(byte[]) };
|
||||
//});
|
||||
|
||||
services.AddUnitOfWork<SqlSugarUnitOfWork>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user