Redirect GRE log messages to a file
Specify a log file to capture the GRE debug messages.
The GREDEBUG environment variable defines the level of detail to be gathered. By default, in non-distributed mode, the requested debug details are written to standard error. In distributed mode, these details are logged to the gre.log file in the home directory of the user invoking the GRE daemon (see Setting up local distributed mode and Setting up remote distributed mode).
This procedure shows you how to override the default behavior and redirect the debug messages to a specified log file.
Sensitive and personal data may be written to the output. Make sure that the log output is written to files that can only be read by application administrators.
GRE logs are written to the log_url/log_filename.log file.
- 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 "$@"