Enabling logging for UGC

By default, the installer has set up UGC to not produce any logs, because logging adversely affects performance. However, if you find yourself faced with an implementation that does not function as you would like, and you want to obtain logging, you can enable logging.

Procedure

  1. Access the Content Manager root location at c:\Program Files\Tridion or c:\Program Files (x86)\Tridion.
  2. From this location, navigate to the subdirectory web\WebUI\WebRoot\bin\.
    You see a file Tridion.UGC.Model.dll in this location.
  3. Back up Tridion.UGC.Model.dll to a safe location.
  4. Copy the file Tridion.UGC.Model.dll from the subdirectory trace\ to the current location.
  5. Perform an IIS reset.

Results

UGC now writes log entries to the existing log file Tridion.Web.Trace, located in the web\WebUI\WebRoot\ subfolder of the Content Manager root location. Remember to disable logging by switching the DLL files around once you have finished debugging UGC. This will improve performance.