src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java
/**
     * Checks is logging globally enabled for and is it currently available for
     * the given service.
     *
     * @param protocol that is checked.
     * @return is logging enabled.
     */
Checks is logging globally enabled for and is it currently available for
the given service.

@param protocol that is checked.
@return is logging enabled.
Checks is logging globally enabled for and is it currently available for the given service . @param protocol that is checked . @return is logging enabled .
public boolean isLoggingEnabled(ProtocolName protocol)
    {
        PacketLoggingConfiguration cfg = getConfiguration();
        if (cfg.isGlobalLoggingEnabled())
        {
            switch(protocol)
            {
            case SIP:
                return cfg.isSipLoggingEnabled();
            case JABBER:
                return cfg.isJabberLoggingEnabled();
            case RTP:
                return cfg.isRTPLoggingEnabled();
            case ICE4J:
                return cfg.isIce4JLoggingEnabled();
            case ARBITRARY:
                return cfg.isArbitraryLoggingEnabled();
            default:
                return false;
            }
        }
        else
            return false;
    }
public boolean isLoggingEnabled ( ProtocolName protocol ) { PacketLoggingConfiguration cfg = getConfiguration ( ) ; if ( cfg . isGlobalLoggingEnabled ( ) ) { switch ( protocol ) { case SIP : return cfg . isSipLoggingEnabled ( ) ; case JABBER : return cfg . isJabberLoggingEnabled ( ) ; case RTP : return cfg . isRTPLoggingEnabled ( ) ; case ICE4J : return cfg . isIce4JLoggingEnabled ( ) ; case ARBITRARY : return cfg . isArbitraryLoggingEnabled ( ) ; default : return false ; } } else return false ; }
Checks is logging globally enabled for and is it currently available for
 the given service.
Checks is logging globally enabled for and is it currently available for the given service .
// It may seem like it was unnecessary to invoke // getConfiguration and isGlobalLoggingEnabled prior to checking // that the specified protocol is supported but, actually, there // are no other ProtocolName values.