English 中文(简体)
是否有办法取消Akka的分解产出?
原标题:Is there a way to deactivate the debugging output of Akka?

While working with Akka, I have implemented a simple command line app.

但是,Aka也向指挥线打印了声明,如:

[GENERIC] [27.10.11 22:57] [RemoteClientStarted(akka.remote.netty.NettyRemoteSupport@b07f45d,/127.0.0.1:3000)]
[GENERIC] [27.10.11 22:57] [RemoteClientConnected(akka.remote.netty.NettyRemoteSupport@b07f45d,/127.0.0.1:3000)]
[GENERIC] [27.10.11 22:57] [RemoteClientShutdown(akka.remote.netty.NettyRemoteSupport@b07f45d,/127.0.0.1:3000)]
[GENERIC] [27.10.11 22:57] [RemoteClientDisconnected(akka.remote.netty.NettyRemoteSupport@b07f45d,/127.0.0.1:3000)]

是否有办法消除这种分散的产出(或将其转移到其他地方)?

最佳回答

藏匿[土著]标识标签的几条东西。 并非所有工作都需要,但似乎工作。

在我的<代码>akka.conf上添加如下内容:

 event-handlers = ["akka.event.slf4j.Slf4jEventHandler"]
 event-handler-level = "WARNING"

确保你改变右翼。 阁下指出,或者说,你会错误地把conf子conf倒在你身上。

我的<代码>logback.xml的底部也做了以下改动:

<logger name="akka" level="WARNING"/>
<root level="WARNING">
<!--    <appender-ref ref="stdout"/> -->
<appender-ref ref="R"/>
</root>

页: 1 应在<代码>akka.conf之后生活。

问题回答




相关问题
Need help with web application settings [closed]

Pls give me the solutions for this two problem, which i was asked recently in interview. Prob1: Suppose I have application with 10 admin, so they can change the data anytime their having own userid ...

AutoResetEvent, ManualResetEvent vs Monitor

Lets say I have to orchestrate a synchronization algorithm in .Net 3.5 SP1 and any of the synchronization primitives listed in the title fit perfectly for the task. From a performance perspective, is ...

PHP and Concurrency

I ve been doing some web development work in PHP recently which has led me to study up on the language in general. So far I have not needed to use it to interact with a database, but I know it ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

Prevent Concurrent Editing of a List Item

In Sharepoint MOSS multiple users can edit the same item in a sharepoint list at the same time…the first person to save their edit “wins”. Is there a way to prevent this, to lock the list item while ...

How to properly catch RuntimeExceptions from Executors?

Say that I have the following code: ExecutorService executor = Executors.newSingleThreadExecutor(); executor.execute(myRunnable); Now, if myRunnable throws a RuntimeExcpetion, how can I catch it? ...

Concurrent modification whilst traversing a ruby Hash

Suppose you had this: def wipeProduct(hash, nameToDelete) hash.each do |i| key = i[0] productName = i[1].first hash.delete(key) if productName==nameToDelete end end I m not sure it ...

热门标签