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.