修改问题
This commit is contained in:
parent
fb2b27328f
commit
ac2741eb37
|
|
@ -122,7 +122,7 @@ namespace HuanMeng.MiaoYu.Code.Base
|
|||
/// dto映射
|
||||
/// </summary>
|
||||
//[FromServices]
|
||||
public IMapper Mapper
|
||||
public override IMapper Mapper
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ namespace HuanMeng.MiaoYu.Code.Cache
|
|||
/// <summary>
|
||||
/// 数据
|
||||
/// </summary>
|
||||
public List<T> DataList
|
||||
public virtual List<T> DataList
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ namespace HuanMeng.MiaoYu.Code.Cache
|
|||
/// <param name="dao"></param>
|
||||
public partial class MiaoYuCache(CacheBase cacheBase)
|
||||
{
|
||||
|
||||
#region 角色缓存表
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -169,6 +170,11 @@ namespace HuanMeng.MiaoYu.Code.Cache
|
|||
|
||||
public static class MiaoYuCacheExtend
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 缓存时间
|
||||
/// </summary>
|
||||
public static DateTime CacheTime { get; set; }
|
||||
#region 缓存锁
|
||||
/// <summary>
|
||||
/// 对话角色缓存表
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ namespace HuanMeng.MiaoYu.Code.Cache.Special
|
|||
/// <summary>
|
||||
/// 锁
|
||||
/// </summary>
|
||||
private static object CharacterCacheLock = new object();
|
||||
private IMapper mapper = cacheBase.Mapper;
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -22,11 +22,32 @@
|
|||
{
|
||||
"Name": "File",
|
||||
"Args": {
|
||||
"path": "../output/logs/log-.txt",
|
||||
"path": "../output/logs/info/log-.txt",
|
||||
"rollingInterval": "Day",
|
||||
"shared": true ,
|
||||
"restrictedToMinimumLevel": "Information", //写入日志的级别
|
||||
"shared": true
|
||||
//"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" ]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user