Setting a log location for your Content Delivery software component

By default, Content Delivery software components write their log files to a logs/ subfolder of your web application (Java) or c:/inetpub/wwwroot/bin/logs/logapirestnet.log (.NET) . Set a proper location in the Logback configuration file, logback.xml. If your software component is installed as a .NET web application, you may also need to activate Windows Event logging by running EventLogCreator.exe.

Procedure

  1. If your environment is Java, do the following:
    1. In the configuration directory of the software component, open logback.xml for editing.
    2. Find the property element with its name attribute set to log.folder.
    3. Set its value attribute to a folder of your choice. You must have write access to this folder.
    4. Save and close logback.xml.
  2. Alternatively, if your environment is .NET, do the following:
    1. Open the .NET web application's Web.config file for editing.
    2. Find the add element whose key attribute is log-output.
    3. Set the value attribute to a folder your choice. You must have write access to this folder. By default, the log location is set to c:/inetpub/wwwroot/bin/logs/logapirestnet.log, which is the log location of the IIS default website.
    4. Save and close Web.config.
  3. If your software component runs in a legacy .NET web application, check if your Event Viewer (available from the Windows Control Panel, Administrative Tools) has a tab called Tridion. (This is true if Content Manager is running on the same machine.)
  4. If you see no Tridion tab in your Event Viewer, add the Tridion tab to your Event Viewer:
    1. From the installation media folder Content Delivery\resources\ , copy the EventLogCreator\ folder to any location on your Windows machine.
    2. From that location, navigate to EventLogCreator\ subfolder and run EventLogCreator.exe as an administrator user.