How to write log information to stdout or file?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
We want to write information into the log but we don't want to write always in database, we are ok to write to the stdout or a log file, is there some function or service to accomplish this?

Critical processes, exceptions, errors and warning will be logged to database

The trace information we need to write, could be placed in stdout or a logfile
3 years ago
Hello,

You can enable the stdout log in web.config file which can be found in the main folder of your nopCommerce. Here is an example, how can you achieve that: https://github.com/nopSolutions/nopCommerce/blob/develop/src/Presentation/Nop.Web/web.config#L14

Cheers,
Patryk
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.