Abp Vnext efcore 输出日志

 

1.在WMSBase.EntityFrameworkCore 安装

Microsoft.Extensions.Logging.Debug

 

2. 在WMSBaseDbContext类中添加

 public static readonly LoggerFactory MyLoggerFactory = new LoggerFactory(new[] {
            new DebugLoggerProvider()
        });

 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            base.OnConfiguring(optionsBuilder);
            optionsBuilder.UseLoggerFactory(MyLoggerFactory);
        }

 

Abp Vnext efcore 输出日志

上一篇:一步一步搭建11gR2 rac+dg之安装rac出现问题解决(六)


下一篇:运算符