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
- If your environment is Java, do the following:
- In the configuration directory of the software component, open
logback.xmlfor editing. - Find the
propertyelement with itsnameattribute set tolog.folder. - Set its
valueattribute to a folder of your choice. You must have write access to this folder. - Save and close logback.xml.
- In the configuration directory of the software component, open
- Alternatively, if your environment is .NET, do the following:
- Open the .NET web application's Web.config file for editing.
- Find the
addelement whosekeyattribute islog-output. - Set the
valueattribute 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. - Save and close Web.config.
- 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.)
- If you see no Tridion tab in your Event Viewer, add the Tridion tab to your Event Viewer:
- From the installation media folder Content Delivery\resources\ , copy the EventLogCreator\ folder to any location on your Windows machine.
- From that location, navigate to EventLogCreator\ subfolder and run EventLogCreator.exe as an administrator user.