Setting a log location for your Content Delivery software component
By default, Content Delivery software components write their log files to a folder called c:/SDLWeb/log/ (Java) or c:/SDLWeb/log/apirestnet.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. - Save and close Web.config.
- If your software component runs in a .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.