Skip to main content
To get Serilog to write to a log file, we need to create a serilog.json file as described for the Serilog Configuration module.
To turn off Serilog, you need to remove the Serilog DLLs.

Sinks

We are using the File sink to write logs to a file. If we restart CRM Web so it reloads the logging config, we should see log output appear in the log file C:/Logs/serilog-20210517.txt:
You can add other sinks to send logging information to other places, like Azure Application Insights, Elmah, DataDog, or Splunk.