覆盖 micronaut 记录器端点

Override micronaut loggers endpoint

在 micronaut 中,我们可以像这样启用 application.yml 文件中定义的 lots of endpoints. Here I'm using the loggers endpoint

endpoints:
  loggers:
    enabled: true

此端点将是:http://my.host/loggers

有没有办法更改此端点,在 /loggers 前面添加上下文?

我想要:http://my.host/mycontext/loggers

或者至少:http://my.host/mycontext_loggers

我尝试使用 @Replace annotation 但没有成功。

有什么想法吗?

谢谢

不可能只为记录器端点设置上下文,但是您可以为所有端点设置上下文:

endpoints.all.path: "/mycontext"