import spray.http._
import spray.client.pipelining._
import akka.actor.ActorSystem
import com.typesafe.config._
val config = ConfigFactory.load()
.withValue("akka.loglevel", ConfigValueFactory.fromAnyRef("OFF"))
.withValue("akka.stdout-loglevel", ConfigValueFactory.fromAnyRef("OFF"))
implicit val system = ActorSystem("AlwaysNameYourSystem", config)
import system.dispatcher // execution context for futures
// ... here goes the rest of example code
akka {
# Log the complete configuration at INFO level when the actor system is started.
# This is useful when you are uncertain of what configuration is used.
log-config-on-start = off
}
2条答案
按热度按时间ca1c2owp1#
这里发生了什么
ActorSystem
(文档在此)。在这一点上,你不应该看到任何消息,在系统启动和任何喷雾通知
qncylg1j2#
这个在**.conf**中的配置对我来说也是有效的
文档在此