Enable Debug logging?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hello,

I have a one question. Can you tell me how can I enable the debug logging, because I have to produce some code from it and no idea how can I do that?
Do I need to do allow this from the IsEnabled(LogLevel level) in the DefaultLogger.cs class?
6 years ago
Well, it is enabled -> http://prntscr.com/he436q, but I don't knоw what I need to do to see the result from that in the Logs
6 years ago
I modified a bit the OrderController.cs in the following way:

https://prnt.sc/he6bsl
https://prnt.sc/he6bww
https://prnt.sc/he6c0v
https://prnt.sc/he6caz

But when I go to the Administration
Admin -> System -> Log

And when I select the Log level to Debug, nothing is displayed...

I don't know what I am doing wrong, I just need to enable the debug logging and to see it.
6 years ago
Howdy Buddy, you have everything setup right in your file. Now in "Nop.Services.Logging" "DefaultLogger" set Debug to True:



NOW COMPILE your whole project Right Click your Solution and go to Build:



Once it's done compiling run your solution F5

Trigger your "debug" statement then go to your logs:

6 years ago
dootchie wrote:
Howdy Buddy, you have everything setup right in your file. Now in "Nop.Services.Logging" "DefaultLogger" set Debug to True:



NOW COMPILE your whole project Right Click your Solution and go to Build:



Once it's done compiling run your solution F5

Trigger your "debug" statement then go to your logs:



Hello, man. Yeah, I finally managed to do it. Thanks for your help and support.
Best regards!
6 years ago
Glad to hear! If you need anything else, just ask, I can try to help
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.