users@shoal.java.net

Re: [Shoal-Users] questions about log

From: Bongjae Chang <carryel_at_korea.com>
Date: Fri, 2 Jan 2009 20:44:21 +0900

Hi leehui.

In addition to Alireza's advice,
if you review JxtaUil.java's configureJxtaLogging() method, you can also modify only jxta's log level by system properties.

Logging.JXTA_LOGGING_PROPERTY is "net.jxta.logging.Logging".

You can add Java's system properties like the followings.
1. -Dnet.jxta.logging.Logging="SEVERE" in running script
2. System.setProperty( Logging.JXTA_LOGGING_PROPERTY, Level.SEVERE.toString() ) in your application

Thanks

--
Bongjae Chang


----- Original Message -----
From: "Alireza Farhoush" <alireza_at_tibco.com>
To: <users_at_shoal.dev.java.net>
Sent: Thursday, January 01, 2009 7:07 AM
Subject: RE: [Shoal-Users] questions about log


Hello,
 
 Shoal uses the standard java logging APIs. I suggest that you read one of the many tutorials available on the internet, e.g. http://www.onjava.com/pub/a/onjava/2002/06/19/log.html
 
 For example, you may change the log level of the Java logging using the following logging.properties file
 
 To disable all Shoal's informational messages and reduce Shoal's log level to severe specify:
     ShoalLogger.level=SEVERE
 
 or enable your own components' logging:
     com.yourcomany.yourproduct.level=ALL
 Of course for the above you need to have specified your own logger.
 
Specify the logging file via
 -Djava.util.logging.config.file=logging.properties
 
Cheers,
 
Alireza

________________________________

From: leehui [mailto:leehui70_at_gmail.com]
Sent: Tue 12/30/2008 5:49 PM
To: users
Subject: [Shoal-Users] questions about log



Hi,

How can I control the shoal's logging function?

There are a lot of information, just like below.

Sometimes, I just want to print my own information. How can I do it?

Thanks.

_____________________________________________________________________________

2008-12-31 9:39:54 net.jxta.impl.protocol.RelayConfigAdv <init>
??: Unhandled Element: net.jxta.impl.document.LiteXMLElement_at_19134f4 / isOff = <<null value>>
2008-12-31 9:39:54 net.jxta.peergroup.WorldPeerGroupFactory newWorldPeerGroup
??: Making a new World Peer Group instance using : net.jxta.impl.peergroup.Platform
2008-12-31 9:39:55 net.jxta.impl.cm.SrdiIndex clearSrdi
??: Clearing SRDI for null
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : None Membership Service (net.jxta.impl.membership.none.NoneMembershipService)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the IP Multicast Message Transport (net.jxta.impl.endpoint.mcast.McastTransport)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Resolver service (net.jxta.impl.resolver.ResolverServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Rendezvous Service (net.jxta.impl.rendezvous.RendezVousServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Discovery service (net.jxta.impl.discovery.DiscoveryServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.endpoint.tcp.IncomingUnicastServer openServerSocket
??: Server will accept connections at /0.0.0.0:9701
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the TCP Message Transport (net.jxta.impl.endpoint.tcp.TcpTransport)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Always Access Service (net.jxta.impl.access.always.AlwaysAccessService)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Endpoint service (net.jxta.impl.endpoint.EndpointServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Peerinfo Service (net.jxta.impl.peer.PeerInfoServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.endpoint.mcast.McastTransport startApp
??: IP Multicast Message Transport disabled.
2008-12-31 9:39:55 net.jxta.impl.resolver.ResolverServiceImpl startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
??: Stalled until there is a resolver service
2008-12-31 9:39:55 net.jxta.impl.endpoint.tcp.TcpTransport startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.endpoint.EndpointServiceImpl startApp
??: Endpoint Service started.
2008-12-31 9:39:55 net.jxta.impl.peer.PeerInfoServiceImpl startApp
??: Stalled until there is a resolver service
2008-12-31 9:39:55 net.jxta.impl.rendezvous.adhoc.AdhocPeerRdvService <init>
??: RendezVous Service is initialized for urn:jxta:jxta-WorldGroup as an ad hoc peer.
2008-12-31 9:39:55 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
??: Rendezvous Serivce started
2008-12-31 9:39:55 net.jxta.impl.discovery.DiscoveryServiceImpl beEdge
??: Switched to a Edge peer role.
2008-12-31 9:39:55 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
??: Discovery service started
2008-12-31 9:39:55 net.jxta.impl.endpoint.tcp.TcpTransport$MessengerSelectorThread run
??: MessengerSelectorThread polling started
2008-12-31 9:39:55 net.jxta.impl.endpoint.tcp.IncomingUnicastServer run
??: Server is ready to accept connections. tcp://133.133.133.94:9701
2008-12-31 9:39:55 net.jxta.impl.endpoint.tcp.TcpTransport startApp
??: TCP Message Transport started.
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup getInterface
??: [urn:jxta:jxta-WorldGroup] GROUP REF COUNT INCREMENTED TO: 1 by
        com.sun.enterprise.jxtamgmt.NetworkManager.getWorldPeerGroup(NetworkManager.java:725)
2008-12-31 9:39:55 net.jxta.peergroup.NetPeerGroupFactory newNetPeerGroup
??: Instantiating net peer group : urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163459616261646162614E5047205032503302
        Parent : urn:jxta:jxta-WorldGroup "World PeerGroup"[1]
        ID : urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163459616261646162614E5047205032503302
        Name : DemoGroup
        impl : <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jxta:MIA>
<jxta:MIA xml:space="default" xmlns:jxta="http://jxta.org">
        <MSID>
                urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000010306
        </MSID>
        <Desc>
                Default Network PeerGroup reference implementation
        </Desc>
        <Comp>
                <Efmt>
                        JRE1.5
                </Efmt>
                <Bind>
                        V2.0 Ref Impl
                </Bind>
        </Comp>
        <Code>
                net.jxta.impl.peergroup.ShadowPeerGroup
        </Code>
        <PURI>
                http://jxta-jxse.dev.java.net/download/jxta.jar
        </PURI>
        <Prov>
                sun.com
        </Prov>
        <Parm>
                <Svc>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000050306
                </Svc>
                <Svc>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000E0106
                </Svc>
                <Svc>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000020106
                </Svc>
                <Svc>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000030106
                </Svc>
                <Svc>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000060106
                </Svc>
                <Svc>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000040106
                </Svc>
                <Svc>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000080106
                </Svc>
                <Svc>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000100106
                </Svc>
                <Svc>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000070106
                </Svc>
                <Proto>
                        urn:jxta:uuid-0C801F65D38F421C9884D706B337B8110106
                </Proto>
                <Proto>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000110106
                </Proto>
                <Proto>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000D0106
                </Proto>
                <Proto>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000F0106
                </Proto>
                <Proto>
                        urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000B0106
                </Proto>
        </Parm>
</jxta:MIA>

2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup getInterface
??: [urn:jxta:jxta-WorldGroup] GROUP REF COUNT INCREMENTED TO: 2 by
        net.jxta.impl.peergroup.GenericPeerGroup.loadModule(GenericPeerGroup.java:627)
2008-12-31 9:39:55 net.jxta.impl.cm.SrdiIndex clearSrdi
??: Clearing SRDI for null
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : PSE Membership Service (net.jxta.impl.membership.pse.PSEMembershipService)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Cryptobased-ID Message Transport (net.jxta.impl.endpoint.cbjx.CbJxTransport)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Resolver service (net.jxta.impl.resolver.ResolverServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Rendezvous Service (net.jxta.impl.rendezvous.RendezVousServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Router Message Transport (net.jxta.impl.endpoint.router.EndpointRouter)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Peerinfo Service (net.jxta.impl.peer.PeerInfoServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the IP Multicast Message Transport (net.jxta.impl.endpoint.mcast.McastTransport)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the JXME Proxy Service (net.jxta.impl.proxy.ProxyService)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Pipe Service (net.jxta.impl.pipe.PipeServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Discovery service (net.jxta.impl.discovery.DiscoveryServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.endpoint.tls.TlsTransport <init>
??: Adjusting TLS connection idle timeout to 300000 millis.
2008-12-31 9:39:55 net.jxta.impl.endpoint.tls.TlsTransport <init>
??: Adjusting TLS min reconnection idle to 60000 millis.
2008-12-31 9:39:55 net.jxta.impl.endpoint.tls.TlsTransport <init>
??: Adjusting TLS maximum retry queue age to 120000 millis.
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the TLS Message Transport (net.jxta.impl.endpoint.tls.TlsTransport)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Relay Message Transport (net.jxta.impl.endpoint.relay.RelayTransport)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Always Access Service (net.jxta.impl.access.always.AlwaysAccessService)
2008-12-31 9:39:55 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded privileged module : Reference Implementation of the Endpoint service (net.jxta.impl.endpoint.EndpointServiceImpl)
2008-12-31 9:39:55 net.jxta.impl.membership.pse.PSEMembershipService startApp
??: PSE Membmership Service started.
2008-12-31 9:39:55 net.jxta.impl.endpoint.cbjx.CbJxTransport startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.resolver.ResolverServiceImpl startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.endpoint.router.EndpointRouter startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.peer.PeerInfoServiceImpl startApp
??: Stalled until there is a resolver service
2008-12-31 9:39:55 net.jxta.impl.endpoint.mcast.McastTransport startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.proxy.ProxyService startApp
??: Stalled until there is a endpoint service
2008-12-31 9:39:55 net.jxta.impl.pipe.PipeServiceImpl startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
??: Stalled until there is a resolver service
2008-12-31 9:39:55 net.jxta.impl.endpoint.tls.TlsTransport startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.endpoint.relay.RelayTransport startApp
??: Stalled until there is an endpoint service
2008-12-31 9:39:55 net.jxta.impl.endpoint.EndpointServiceImpl startApp
??: Endpoint Service started.
2008-12-31 9:39:55 net.jxta.impl.endpoint.cbjx.CbJxTransport startApp
??: CbJxTransport started
2008-12-31 9:39:55 net.jxta.impl.rendezvous.edge.EdgePeerRdvService <init>
??: RendezVous Service is initialized for urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163459616261646162614E5047205032503302 as an Edge peer.
2008-12-31 9:39:55 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
??: Rendezvous Serivce started
2008-12-31 9:39:55 net.jxta.impl.rendezvous.edge.EdgePeerRdvService$MonitorTask run
??: Rendezvous connection stalled until router is started!
2008-12-31 9:39:55 net.jxta.impl.cm.SrdiIndex <init>
??: [urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163459616261646162614E5047205032503302[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2]] : Initialized routerSrdi
2008-12-31 9:39:55 net.jxta.impl.endpoint.router.EndpointRouter startApp
??: urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163459616261646162614E5047205032503302[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2] : Router Message Transport started.
2008-12-31 9:39:55 net.jxta.impl.endpoint.mcast.McastTransport startApp
??: IP Multicast Message Transport started.
2008-12-31 9:39:55 net.jxta.impl.proxy.ProxyService startApp
??: Stalled until there is a discovery service
2008-12-31 9:39:55 net.jxta.impl.cm.SrdiIndex <init>
??: [urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163459616261646162614E5047205032503302[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2]] : Initialized pipeResolverSrdi
2008-12-31 9:39:55 net.jxta.impl.cm.SrdiIndex startGC
??: [urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163459616261646162614E5047205032503302[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2]] : Starting SRDI GC Thread for pipeResolverSrdi
2008-12-31 9:39:55 net.jxta.impl.discovery.DiscoveryServiceImpl beEdge
??: Switched to a Edge peer role.
2008-12-31 9:39:55 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
??: Discovery service started
2008-12-31 9:39:56 net.jxta.impl.endpoint.relay.RelayClient startClient
??: Started client : relay://uuid-59616261646162614A78746150325033E85B76DF7E044259BB8AAB62D727F4FE03
2008-12-31 9:39:56 net.jxta.impl.endpoint.relay.RelayClient run
??: Start relay client thread
2008-12-31 9:39:56 net.jxta.impl.endpoint.relay.RelayTransport startApp
??: Relay Message Transport started
2008-12-31 9:39:56 net.jxta.impl.proxy.ProxyService startApp
??: JXME Proxy Service started.
2008-12-31 9:39:56 net.jxta.impl.peergroup.GenericPeerGroup loadModule
??: Loaded module : Default Network PeerGroup reference implementation (net.jxta.impl.peergroup.ShadowPeerGroup)
2008-12-31 9:39:56 net.jxta.impl.peergroup.GenericPeerGroup getInterface
??: [urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163459616261646162614E5047205032503302] GROUP REF COUNT INCREMENTED TO: 1 by
        com.sun.enterprise.jxtamgmt.NetworkManager.startDomain(NetworkManager.java:711)
2008-12-31 9:39:56 net.jxta.impl.pipe.NonBlockingWireOutputPipe <init>
??: Constructing for urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC016348390CB44D1A54313BF1EAB630992D20E04
2008-12-31 9:39:56 net.jxta.impl.pipe.InputPipeImpl <init>
??: Creating InputPipe for urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163426A6B0FA860845C2A804939A39FBA35A04 of type JxtaPropagate with listener
2008-12-31 9:39:56 net.jxta.impl.pipe.WirePipe register
??: Registering urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163426A6B0FA860845C2A804939A39FBA35A04 with pipe resolver.
2008-12-31 9:39:56 net.jxta.impl.pipe.NonBlockingWireOutputPipe <init>
??: Constructing for urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163426A6B0FA860845C2A804939A39FBA35A04
2008-12-31 9:39:56 net.jxta.impl.pipe.NonBlockingWireOutputPipe <init>
??: Constructing for urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC016346E0638B5DF604AEEAC09A3FAE829FBE804
2008-12-31 9:39:56 net.jxta.impl.pipe.InputPipeImpl <init>
??: Creating InputPipe for urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC016346E0638B5DF604AEEAC09A3FAE829FBE804 of type JxtaPropagate with listener
2008-12-31 9:39:56 net.jxta.impl.pipe.WirePipe register
??: Registering urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC016346E0638B5DF604AEEAC09A3FAE829FBE804 with pipe resolver.
2008-12-31 9:39:56 net.jxta.impl.pipe.InputPipeImpl <init>
??: Creating InputPipe for urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC016348390CB44D1A54313BF1EAB630992D20E04 of type JxtaPropagate with listener
2008-12-31 9:39:56 net.jxta.impl.pipe.WirePipe register
??: Registering urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC016348390CB44D1A54313BF1EAB630992D20E04 with pipe resolver.
2008-12-31 9:39:56 net.jxta.impl.pipe.InputPipeImpl <init>
??: Creating InputPipe for urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163426A6B0FA860845C2A804939A39FBA35A04 of type JxtaPropagate with listener
2008-12-31 9:39:56 net.jxta.impl.pipe.NonBlockingWireOutputPipe <init>
??: Constructing for urn:jxta:uuid-9CBEFAC6AC80495F9FE68107ACC0163426A6B0FA860845C2A804939A39FBA35A04
2008-12-31 9:39:56 com.sun.enterprise.ee.cms.impl.jxta.ViewWindow getMemberTokens
??: GMS View Change Received for group DemoGroup : Members in view for (before change analysis) are :
1: MemberId: 33e61396-267e-41b8-8dce-8970bcff04e0, MemberType: CORE, Address: urn:jxta:uuid-59616261646162614A78746150325033E85B76DF7E044259BB8AAB62D727F4FE03

2008-12-31 9:39:56 com.sun.enterprise.ee.cms.impl.jxta.ViewWindow newViewObserved
??: Analyzing new membership snapshot received as part of event : MASTER_CHANGE_EVENT
false
33e61396-267e-41b8-8dce-8970bcff04e0
true
33e61396-267e-41b8-8dce-8970bcff04e0
_____________________________________________________________________________
                               
Best regards!
--------------
leehui
2008-12-31





--------------------------------------------------------------------------------


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net