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

vfabregat picture vfabregat  路  3Comments

SmallShrimp picture SmallShrimp  路  3Comments

wocar picture wocar  路  3Comments

derily picture derily  路  3Comments

ugurozturk picture ugurozturk  路  3Comments