如何在嵌入式 Jetty 上配置 StdErrLog

how to configure StdErrLog on an Embedded Jetty

我正在从 Groovy 脚本中启动 Jetty 网络服务器。 Jetty 的默认日志记录是 StdErrLog。现在我想配置此日志记录,但 the documentation 仅在使用 start.jar 方法启动 Jetty 时提到如何执行此操作。

如何在嵌入式 Jetty 上使用 StdErrLog 配置,更具体地说,如何配置循环日志文件?

这个之前已经回答过 here. It is a few years old but should help you on your way. Additionally a page was accidentally clipped from the 9.4.x documentation that I will re-add, but you can find for now in the 9.3.x documentation here. These cookbook examples 应该也有帮助,但他们现在又过了几年了。