Setting a timezone in the Bluemix log files

送分小仙女□ 提交于 2019-12-11 14:29:32

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!