The default log file directory property
In the base configuration, file log4j2.xml defines the default logging
directory as
/tmp/gwlogs/PolicyCenter/logs by using the following Property element.<Property name="guidewire.logDirectory">/tmp/gwlogs/PolicyCenter/logs</Property>
PolicyCenter uses these directory
Property values in configuring
the appenders that generate the log files. For example, the following
definition for a RollingFile
appender uses the default logging directory path.
<RollingFile name="DailyFileLog" fileName="${guidewire.logDirectory}/pclog.log"
filePattern="${guidewire.logDirectory}/pclog.log%d{.yyyy-MM-dd}">
...
</RollingFile>
Notice how this code defines the default directory path as a variable.
${guidewire.logDirectory}
It is possible to change the default directory location by modifying the directory path.
File path definition
Express all file locations in file log4j2 by using an absolute path.
Regardless of the operating system, you must use forward slashes and
not backslashes. The directory path that you specify must exist. PolicyCenter creates the log file
itself automatically.
Note: If you specify a non-existent logging
directory path, PolicyCenter
writes logging information to the application console only.
