日志文件 (logfile)
原文:https://docs.spring.io/spring-boot/api/rest/actuator/logfile.html
logfile 端点提供对应用日志文件的访问。
检索日志文件
向 /actuator/logfile 发出 GET 请求:
$ curl 'http://localhost:8080/actuator/logfile' -i -X GET
响应返回日志文件的内容。可以使用 Accept 头请求纯文本。可以通过 ?start=<offset> 和 ?end=<offset> 参数(部分实现支持)检索日志的一部分。端点需要配置 logging.file.name 或 logging.file.path。