WebSphere Liberty Profile 使用 bootstrap.properties 的定制日志位置



我添加了带有以下条目的bootstrap.properties。

 com.ibm.ws.logging.log.directory=/opt/ibm/wlp/servers/CustomServer/customlogdirectory/

根据文档,它说所有日志都将在上述目录中生成。"messages.log的"正在生成并存储在目录中,如bootstrap.properties中所述。但是我看到"控制台.log"正在位置/opt/ibm/wlp/servers/CustomServer/logs下更新

有人可以指导我如何将所有日志重定向到 bootstrap.properties 文件中提到的日志吗?

https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.doc/ae/rwlp_logging.html

仅当使用服务器启动命令及其 位置 C只能通过使用 LOG_DIR 环境变量进行更改

最新更新