官术网_书友最值得收藏!

Logs

The most common method of getting information about how your code is working is generally through logs. Every language and development environment has its own pattern of how to expose those details, but at the very basics, it can be as simple as a print statement sending a line of text that will mean something to you to stdout. It is without a doubt the most consistent means across all programming languages of quick and simple debugging. When you deploy and run your code in Kubernetes, it maintains access to the logs from each Pod and container—where logs, in this case, are sending data to stdout and stderr.

If your existing pattern of development writes output to a specific file location, and maybe your framework includes the capability of rotating those log files as they grow, you may want to consider just sending data to stdout and/or stderr so that Kubernetes can make this coordination work.

主站蜘蛛池模板: 株洲县| 宣城市| 太湖县| 彰武县| 通辽市| 长汀县| 巧家县| 鹰潭市| 连州市| 通渭县| 常熟市| 岳阳市| 临泽县| 突泉县| 中超| 普兰店市| 沈丘县| 东台市| 五常市| 白山市| 阳原县| 桦南县| 南部县| 互助| 永胜县| 翁源县| 建始县| 河池市| 武城县| 桓台县| 四子王旗| 永德县| 龙陵县| 鱼台县| 柞水县| 长垣县| 阿鲁科尔沁旗| 周至县| 鄢陵县| 九寨沟县| 凌海市|