itzg/docker-minecraft-server
Add first-class JSON log output (Log4j2 JsonTemplateLayout) via env var
开放
#3,870 创建于 2026年1月14日
enhancementhelp wanted
仓库指标
- 星标
- (13,694 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Enhancement Type
Improve an existing feature
Describe the enhancement
Describe the problem / motivation
Many log pipelines and docker observation tools work best with JSON in container stdout. Today the image primarily supports customizing PatternLayout via LOG_CONSOLE_FORMAT / LOG_FILE_FORMAT, which still produces unstructured text. (docker-minecraft-server.readthedocs.io)
Proposed enhancement Add an opt-in way to switch console (and optionally file) logs to JSON output using Log4j2’s JsonTemplateLayout. (logging.apache.org)
Suggested UX:
LOG_FORMAT=json(orLOG_LAYOUT=json-template)LOG_JSON_TEMPLATE=<builtin name | path>