Abp: How to disable show ef core sql to console

Created on 15 Jan 2020  路  1Comment  路  Source: abpframework/abp

update to 2.0,and show ef core sql default, but i just want to watch business output. so how to disable it.

question

Most helpful comment

Add in Program.cs Logger configure
.MinimumLevel.Override("Microsoft", LogEventLevel.Information) after this line
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Error).
Set EntityFrameworkCore minimum log level Error.

>All comments

Add in Program.cs Logger configure
.MinimumLevel.Override("Microsoft", LogEventLevel.Information) after this line
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Error).
Set EntityFrameworkCore minimum log level Error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leonkosak picture leonkosak  路  3Comments

zsanhong picture zsanhong  路  3Comments

hikalkan picture hikalkan  路  3Comments

hikalkan picture hikalkan  路  3Comments

hikalkan picture hikalkan  路  3Comments