External Log Directory Configuration for ZIETrans applications

By default, application logs, including message logs, trace files, and host simulation traces, are stored within the deployment location. However, users have the flexibility to exert control over log locations. By configuring the environment variable 'ZIETRANS_LOG_ENV' to a valid path, users can direct logs to their desired directory, ensuring the ZIETrans runtime possesses the necessary write access. Additional details about this feature can be found here

Execute the following steps to save the log files outside the ear/war:

  • Include the below command to set the environment variable path as below in docker file (refer here for the sample Docker file):

    # Environment variable for saving the log/trace outside the ear.
    ENV ZIETRANS_LOG_ENV=/home/logs
  • Post deployment, log files, trace files and hostsimulation trace files will be available in the provided directory in the container.