Debugging uSync

There may come a time when uSync isn't doing what you expect it to do ☹ This is a sad time for us all, we want to stop that from happening, but first we need to work out what is happening.

the best way to do that is to turn on debug logging and work through what uSync is doing.

Turning on Debug logging

Logging in Umbraco 8 is managed via Serilog which outputs all logging messages to files in App_Data/Logs

To turn on debug logging, add the following to the config/serilog.config file.

<add key="serilog:minimum-level:override:uSync" value="Debug" />

You will need to restart your site once you have edited this file.

Viewing the Logs

These logs can be viewed either inside Umbraco, in the settings section under Log Viewer of externally using the Compact Log Format viewer.

In both cases the query below will give you all the uSync messages in the log file:

StartsWith(SourceContext, 'uSync')

Happy logging.