Necessary Steps to Configure the log4j.properties File
CollegeSource recommends using the log4j.properties file instead of the log4j.xml file due to it's simplified format. NOTE: Either file may be used.
The configuration steps for the log4j.xml file are on the OAS, Steps for log4j.xml Configuration page.
Permissions on Files and Directories
The Operating System owner (i.e., executor) of the OAS java process must have the following permissions:
- Execute and Read permission for all directories in the fullpath to the log4j.properties file
- Execute, Write, and Read permission for all directories in the fullpath to the ceg4.log file
The log4j.properties file and ceg4.log file must reside in different directories.
- Create directory for the log4j.properties file
- Create directory for the ceg4.log file
- Download log4j.properties
- Copy the log4j.properites to the desired directory
- Edit log4j.properties with a text editor
- Revise log4j.appender.fileout.File lines
Comment the line that contains java.io.tmpdir to look like the following:
Uncomment the line that contains directoryxy and replace directoryxy with the directory you created above in step 1.a.
- Save your changes
Java guarantees a temporary directory that is identified by the java.io.tmpdir System property. Many java runtimes default this location to the Linux /tmp or Windows C:\TEMP directory, however OAS does NOT.
For this reason, CollegeSource recommends following Step 5 above to ensure the ceg4.log is created in a known directory of your choosing.