Redirect log messages to a file
By default, GRE error and warning messages appear in the standard output. However, you can redirect these messages to a log file.
GRE logs are written to the url/filename.log file.
Note: If you want to have the same type of logging in non-distributed mode as in
distributed mode, it is not necessary to specify an external file. You can instead
specify a resource path to one of the configuration files that are shipped inside
gre.jar. These files are dependent on the operating
system:
- Unix: log4j_configuration_unx_d.txt
- Windows: log4j_configuration_win_d.txt
- Other: log4j_configuration_oth_d.txt
For example, in Linux™:
exec java
-Dlog4j.configuration="com/fourjs/report/resources/log4j_configuration_unx_d.txt"
-Djava.awt.headless=true GReportWriter $DEBUGOPTION "$@"