[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about LogListener



> I modified Console.java, made it implement LogListener interface.
> I want to make it to receive all log message and show these messages
> to client console.

> In PrimordialNode.java, I modified startConsole(Node,int):

> Then I run an application PingApplication, the console log listener
> can receive :
> listener: 7 sys *** Log Started
> listener: 7 *** Log Started
> listener: 5 Started a control console on zheng.nankai.edu.cn:7777
> 
> It cant receive the log of PingApplication, which is received by
> StdoutListener.
> sending 20 capsules at 300ms intervals
> Sending primer capsule (and waiting 1000ms).
> PingCapsule #0 (0 received) delivered to App!
> 
> Is there anything wrong?
> Is the node which application get throught thisNode() not the node
> which I add log listener to in the PrimordialNode?

The Node.log() uses the Node object logger, which doesn't have your stuff
added to it.  And, the PrimordialNode.message() methods just use the
System.(out/err) stuff.

> -- 
> Best regards,
>  Rui

tim stack




[ Janos ] [ OSKit ] [ Network Testbed ] [ Flick ] [ Fluke ]
Flux Research Group / Department of Computer Science / University of Utah