Search

GlobalSCAPE Knowledge Base

Append computer name to default log file for nodes

Karla Marsh
EFT

  • EFT v7.3 and later

DISCUSSION

When collecting log files for clusters, it is easy to mix up logs from the different nodes. You can manually rename a file, or a folder can be created for each node to hold its log files. Instead, you can configure the EFT logging system to automatically append the computer name to the log file name.

This can be done entirely through settings in the logging.cfg file by changing the following line:

log4cplus.appender.RootFileAppender.File=${AppDataPath}\EFT.log

to

log4cplus.appender.RootFileAppender.File=${AppDataPath}\EFT-${COMPUTERNAME}.log

This will result in log file names similar to “EFT-COMPA.log”. The rolling file numeration appended to the name will remain the same, e.g., "EFT-COMPA.log.1."

Details
Last Modified: 7 Years Ago
Last Modified By: kmarsh
Type: HOWTO
Article not rated yet.
Article has been viewed 1.8K times.
Options
Also In This Category