Setting a timezone in the Bluemix log files

2019-08-08 09:07发布

问题:

When I look at the log files for my application, the entries are listed in UTC. However, I want the entries to reflect my local timezone. Can you customize the time zone for the log files?

回答1:

I did not find the information in the documentation. I used the following commands to change the time zone to US Eastern time:

cf set-env <app-name> JAVA_OPTS '-Duser.timezone=America/New_York'   
cf restage <app-name>

As an alternative, I could have changed the manifest.yml file.



标签: ibm-cloud