Open Closed

How not to log the SQL query syntax #2157


User avatar
0
drenton created
  • 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 Answer(s)
  • User Avatar
    0
    liangshiwei created
    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 created

    Thanks! this works!

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on January 08, 2026, 13:10
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.