Naming, Searching, and Creating Log Files

Log File Naming Recommendation

The best way to manage and understand the logs is to have each member log to its own files. For members running on the same machine, you can do this by starting them in different working directories and using the same, relative log-file specification. For example, you could set this in <commonDirectoryPath>/
then start each member in a different directory with this command, which points to the common properties file:
java -DgemfirePropertyFile=<commonDirectoryPath>/
This way, each member has its own log files under its own working directory.

Searching the Log Files

For the clearest picture, merge the log files, with the gemfire merge-logs command:
gemfire merge-logs log-file1 ... log-fileN -out=merged-logfile-name 
Search for lines that begin with these strings:
  • [warning
  • [error
  • [severe

Creating Your Own Log Messages

In addition to the system logs, you can add your own application logs from your Java code. For information on adding custom logging to your applications, see the online Java documentation for the com.gemstone.gemfire.LogWriter interface. Both system and application logging is output and stored according to your logging configuration settings.