问题描述
我正在开发可在aws beantalk环境下使用的python应用程序.对于错误处理和调试,我建议将日志写入目录/var/logs/中的自定义lof文件.
I'm developing python application which works on aws beanstalk environment. For error handling and debugging proposes I write logs to custom lof file on the directory /var/logs/.
我应该怎么做才能从Elastic beanstalk管理控制台获得功能快照日志?
What should I do in order to have ability snapshot logs from Elastic beanstalk management console?
推荐答案
如果您需要能够从Beanstalk管理控制台中对日志文件进行快照,则只需将日志文件写入"/opt/python/log/"文件夹.弹性beantalk脚本使用此文件夹进行日志拖尾.
If you need have ability to snapshot log files from Beanstalk management console, you should just write you log files to "/opt/python/log/" folder. Elastic beanstalk scripts use this folder for log tailing.
这篇关于AWS Beanstalk上的Python.如何快照自定义日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!