修改问题
This commit is contained in:
parent
fb2b27328f
commit
ac2741eb37
|
|
@ -122,7 +122,7 @@ namespace HuanMeng.MiaoYu.Code.Base
|
||||||
/// dto映射
|
/// dto映射
|
||||||
/// </summary>
|
/// </summary>
|
||||||
//[FromServices]
|
//[FromServices]
|
||||||
public IMapper Mapper
|
public override IMapper Mapper
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ namespace HuanMeng.MiaoYu.Code.Cache
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 数据
|
/// 数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<T> DataList
|
public virtual List<T> DataList
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ namespace HuanMeng.MiaoYu.Code.Cache
|
||||||
/// <param name="dao"></param>
|
/// <param name="dao"></param>
|
||||||
public partial class MiaoYuCache(CacheBase cacheBase)
|
public partial class MiaoYuCache(CacheBase cacheBase)
|
||||||
{
|
{
|
||||||
|
|
||||||
#region 角色缓存表
|
#region 角色缓存表
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -169,6 +170,11 @@ namespace HuanMeng.MiaoYu.Code.Cache
|
||||||
|
|
||||||
public static class MiaoYuCacheExtend
|
public static class MiaoYuCacheExtend
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 缓存时间
|
||||||
|
/// </summary>
|
||||||
|
public static DateTime CacheTime { get; set; }
|
||||||
#region 缓存锁
|
#region 缓存锁
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 对话角色缓存表
|
/// 对话角色缓存表
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ namespace HuanMeng.MiaoYu.Code.Cache.Special
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 锁
|
/// 锁
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static object CharacterCacheLock = new object();
|
|
||||||
private IMapper mapper = cacheBase.Mapper;
|
private IMapper mapper = cacheBase.Mapper;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,32 @@
|
||||||
{
|
{
|
||||||
"Name": "File",
|
"Name": "File",
|
||||||
"Args": {
|
"Args": {
|
||||||
"path": "../output/logs/log-.txt",
|
"path": "../output/logs/info/log-.txt",
|
||||||
"rollingInterval": "Day",
|
"rollingInterval": "Day",
|
||||||
"shared": true ,
|
"restrictedToMinimumLevel": "Information", //写入日志的级别
|
||||||
|
"shared": true
|
||||||
//"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}"
|
//"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "File",
|
||||||
|
"Args": {
|
||||||
|
"path": "../output/logs/error/log-.txt",
|
||||||
|
"rollingInterval": "Day", //日志文件按天滚动生成。
|
||||||
|
"restrictedToMinimumLevel": "Error", //写入日志的级别 //包括 Verbose、Debug、Information、Warning、Error 和 Fatal
|
||||||
|
"shared": true, //不占用文件
|
||||||
|
// "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "File",
|
||||||
|
"Args": {
|
||||||
|
"path": "../output/logs/debug/log-.txt",
|
||||||
|
"rollingInterval": "Day", //日志文件按天滚动生成。
|
||||||
|
"restrictedToMinimumLevel": "Debug", //写入日志的级别 //包括 Verbose、Debug、Information、Warning、Error 和 Fatal
|
||||||
|
"shared": true //不占用文件
|
||||||
|
// "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ]
|
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user