启动时如何打印akka配置? [英] How print akka configuration at startup?

查看:92
本文介绍了启动时如何打印akka配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有几个配置文件的akka​​项目。

I have a akka project with several config files. Is it possible to print akka merged configuration event when application starts (or stops) with errors?

推荐答案

来自配置


如果系统或配置属性 akka.log-config-on-start 设置为
on ,然后在启动actor
系统时记录INFO级别的完整配置。

If the system or config property akka.log-config-on-start is set to on, then the complete configuration at INFO level is logged when the actor system is started.

添加配置文件中的配置以将整个配置打印为

Add the configuration in your config file to print the entire configuration as

akka {
  log-config-on-start = "on"
}

这篇关于启动时如何打印akka配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆