Base solution for your next web application
Open Closed

Disable logging all SQL statements #10490


User avatar
0
BobIngham created
v10.4.0, Angular, .NET Core 5.0, Abp 6.4.0 (I think)

Referring to this entry which seems to be unresolved: Disable logging all SQL statements On a clean install I have these entries in the log file: This is far too verbose especially when I use Application Insights for log analysis. How do I switch the option off?

Cheers, Bob


2 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi Bob

    You can change db command's loglevel to none to prevent logging db commands: https://github.com/aspnetzero/aspnet-zero-core/blob/46aac958aa330771b37a3e4d5bc220d4e1221549/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/Startup/Program.cs#L27

  • User Avatar
    0
    BobIngham created

    Perfect, thanks.