It appears that by default all SQL statements are logged by the backend. We can't seem to figure out where this is configured.
Is there a way to turn of logging of SQL statements?
7 Answer(s)
-
0
Hi,
Can you share a sample log ? Is it logged to database or log file ?
Thanks.
-
0
Hi.
We replaced the logging framework with nLog as described in the documentation, and we are currently logging to a file.
Basically all SQL commands executed by EF Core seems to be logged which makes the log files huge.
Regards
Kristian
-
0
Which log file is it going into? This doesn't happen to me but at times I would like it. I will ask the same question in reverse, how can I turn this on?
Thanks, Matt
-
0
I will let you know as soon as I figured out how to enable / disable it ;)
-
0
how to enable it ? i set appsetting.json , Logging:LogLevel. but logging any about ef.
-
0
@krileo how to enable / disable it ? i cann`t enable it
-
0
Basically all SQL commands executed by EF Core seems to be logged which makes the log files huge.
I have a fresh install of 10.4.0 and this is happenning. How can I switch it off?