问题
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.
来源:https://stackoverflow.com/questions/32914493/setting-a-timezone-in-the-bluemix-log-files