By default, the name of the log output file is server.log and it is located in domain-dir/logs. You can change the name or location of the file by editing the logging.properties file as follows:
In a text editor, find the following line:
com.sun.enterprise.server.logging.FileandSyslogHandler.file=logs/server.log
In this line, logs indicates the directory where the file is located, and server.log is the file name.
Make your changes and save the file.
To apply your changes, restart Enterprise Server.
Stop Enterprise Server.
For instructions, see To Stop a Domain (or Server).
Start Enterprise Server.
For instructions, see To Start a Domain (or Server).
The following example changes the log file name from server.log to myLogging.log and changes the location from the logs directory to the dpin directory:
Before:
com.sun.enterprise.server.logging.FileandSyslogHandler.file=logs/server.log
After:
com.sun.enterprise.server.logging.FileandSyslogHandler.file=dpin/myLogging.log