打开 关闭

How not to log the SQL query syntax #2157


User avatar
0
drenton 创建
  • ABP Framework version: v4.4.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How can I NOT log SQL query syntax?

The log file size is huge and most of the text are from EFCore query.


2 答案
  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Hi,

    By default, we do not output SQL logs.

    You can try to change the log level to the warning:

  • User Avatar
    0
    drenton 创建

    Thanks! this works!

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11