Cloud foundry 在应用程序推送上记录更多输出

Cloud foundry 在应用程序推送上记录更多输出,cloud-foundry,cloudfoundry-java-client,Cloud Foundry,Cloudfoundry Java Client,我使用cloudfoundry操作库将清单推送到CF,如下所示: final PushApplicationManifestRequest pushRequest = PushApplicationManifestRequest.builder() .manifest(applicationManifest) .build(); final Mono<Void> pushManifest = cfOperations.applications().pushMani

我使用
cloudfoundry操作
库将清单推送到CF,如下所示:

 final PushApplicationManifestRequest pushRequest = PushApplicationManifestRequest.builder()
    .manifest(applicationManifest)
    .build();

final Mono<Void> pushManifest = cfOperations.applications().pushManifest(pushRequest);

pushManifest.block(); // I want to block at this point
final PushApplicationManifestRequest pushRequest=PushApplicationManifestRequest.builder()
.manifest(applicationManifest)
.build();
final Mono pushManifest=cfOperations.applications().pushManifest(pushRequest);
pushManifest.block();//我想在这一点上封锁
我遇到的问题是,这个操作可能需要几分钟,其间我没有得到反馈,没有输出。我希望看到更多关于正在发生的事情的输出(是否正在上传、登台…)

是否有一种查看更多日志输出的简单方法?比如,我可以为CF客户机调整一些配置参数吗


我可以筛选代码并调整
slf4j
配置以打印更多信息,但感觉脆弱而复杂。

您到底想看什么?登台输出和应用程序日志?或者从库本身正在做的事情中获取日志?我认为调整日志级别只会让你达到这个目的。您可能只需要使用
cloudfoundry operations
在一个单独的线程中对日志进行流式处理。@Daniel,我想了解一下正在发生的事情,更深入地了解cf cli。比如,现在正在推送,现在开始登台…现在我调用推送,5分钟后我可以说我完成了,但中间没有收到任何反馈。您可以尝试设置
cloudfoundry client.operations
的日志级别进行调试,看看这是否有帮助,即
logging.level.cloudfoundry client.operations=DEBUG
。它将为您提供一些基本信息,如推送开始和结束的时间。不过,在登台过程中发生的事情的完整细节,如buildpack输出,需要来自平台的日志流。因此,你需要一个独立的流程,在推送应用程序后启动该应用程序,并拉取该应用程序的日志。你到底想看到什么?登台输出和应用程序日志?或者从库本身正在做的事情中获取日志?我认为调整日志级别只会让你达到这个目的。您可能只需要使用
cloudfoundry operations
在一个单独的线程中对日志进行流式处理。@Daniel,我想了解一下正在发生的事情,更深入地了解cf cli。比如,现在正在推送,现在开始登台…现在我调用推送,5分钟后我可以说我完成了,但中间没有收到任何反馈。您可以尝试设置
cloudfoundry client.operations
的日志级别进行调试,看看这是否有帮助,即
logging.level.cloudfoundry client.operations=DEBUG
。它将为您提供一些基本信息,如推送开始和结束的时间。不过,在登台过程中发生的事情的完整细节,如buildpack输出,需要来自平台的日志流。因此,你需要一个独立的流程,在你推送应用程序之后启动该应用程序,从而拉取该应用程序的日志。