- It looks for a serilog.json file in the current and parent directories.
- If nothing is found, then it looks for an appsettings.json file.
- If no config file is found, then we don’t use Serilog.
- If we do find a Json config file, we can read it and set up the Serilog configuration pipeline:
You need to create the serilog.json file and restart CRM Web if you switch from standard NetServer logging to Serilog.
Files to deploy
Don’t want logging via Serilog? Remove the following DLLs:- SuperOffice.Serilog.dll
- Serilog.dll
- Serilog.Extensions.Logging.dll
- Serilog.Settings.Configuration.dll
- Serilog.Sinks.Debug.dll
- Serilog.Sinks.File.dll