Documentation Center

Changing the location of the SDL Online Editor log files

SDL Online Editor keeps log files for three of the services installed along with it: BCM Service, Editor Service, and Editor Service Router. By default, these are stored in the bin\logs subfolder of each service. For example, C:\Program Files\SDL\Editor Service Router\bin\logs. You can change the location where each of your SDL Online Editor log files is stored by changing an attribute in its corresponding configuration file.

About this task

WorldServer and SDL Online Editor are usually installed on different machines, which means that their logs are also stored on different machines. However, if you configure the SDL Online Editor log files to be stored on the same machine and in the same folder where the WorldServer log files are stored, the SDL Online Editor log files will also be displayed on the WorldServer user interface, on the Management > Administration > System Logs page.

To store the SDL Online Editor log files on the WorldServer machine and in the same folder as the WorldServer log files, you need to have the same service account user with the same name and permissions on both machines. The WorldServer service, as well as the SDL Online Editor services whose logs you want to store on the WorldServer machine, should all run under that user.

Procedure

  1. Go to <service-location>\bin, where <service-location> is the path to the folder corresponding to the service for which you want to change the location of the log file.

    For example, C:\Program Files\SDL\Editor Service Router\bin.

  2. Open the Sdl.<service-name>.Host.exe.config file with a text editor.
    In this case, <service-name> is the name of the service for which you want to change the location of the log file.

    For example, open the Sdl.EditorServiceRouter.Host.exe.config file with Notepad++.

  3. Search for the fileName attribute.
    You can find this attribute on a line that starts with the following:
    <target name="logFile" xsi:type="File" fileName="${basedir}\logs\EditorServiceRouter.log"
  4. If the section that contains the fileName attribute is commented out, uncomment it.
  5. Change the value of the attribute from "${basedir}\logs\<service-name>.log" to the location where you want the log file to be stored.

    For example, fileName="C:\My Logs\EditorServiceRouter.log".

  6. Save the file.
  7. Restart the service for which you changed the location of the log file.
  8. If necessary, change the locations where the log files of other services are stored.

What to do next

Grant the appropriate SDL Online Editor permissions to your user types.