为什么电锯中的套接字接收器处于非活动状态? [英] Why is Socket Receiver inactive in Chainsaw?

查看:52
本文介绍了为什么电锯中的套接字接收器处于非活动状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我启动ChainSaw时(在端口4445上使用一个简单的Receiver)

When I start ChainSaw (using a simple Receiver on port 4445)

我看到了它的属性

active  false
class   class org.apache.log4j.net.SocketReceiver
connectedSocketDetails  []
listener    
loggerRepository    org.apache.log4j.Hierarchy@1c3dc66
name    SocketReceiver
paused  false
port    4445
threshold   TRACE

由于Socket Receiver处于非活动状态,我可能看不到我的日志.我该如何更改?如果您有使用电锯的经验,还可以检查一下我的log4j.properties是否还可以吗?

Probably I cannot see my logs due to the fact that Socket Receiver is inactive. How could I change it? If you are experienced in using Chainsaw could you also check if my log4j.properties are ok?

log4j.rootLogger=DEBUG, server

log4j.appender.server=org.apache.log4j.net.SocketAppender
log4j.appender.server.Port=4445
log4j.appender.server.RemoteHost=localhost
log4j.appender.server.ReconnectionDelay=10000

推荐答案

您是否正在使用链锯的Web Start版本?我们将很快发布Chainsaw的更新,其中包含许多新功能-您介意下载开发人员快照并尝试一下吗?尚未通过Web Start提供此功能.

Are you using the Web Start version of Chainsaw? We are going to be releasing an updated of Chainsaw soon, with a lot of new features - would you mind downloading the developer snapshot and giving that a try? It's not yet available via Web Start.

电锯启动时,系统会提示您一个(新的)配置对话框,您可以在其中要求它设置套接字接收器并提供端口,并告诉它始终使用此配置.

When Chainsaw starts you should be prompted with a (new) configuration dialog where you can ask it to set up a socket receiver and provide the port, and tell it to always use this configuration.

以下是开发者快照的链接: http://people.apache.org/~sdeboy

Here's the link to the developer snapshot: http://people.apache.org/~sdeboy

这篇关于为什么电锯中的套接字接收器处于非活动状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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