public ILog getLog(String topic, int partition) {
        TopicNameValidator.validate(topic);
        Pool<Integer, Log> p = getLogPool(topic, partition);
        return p == null ? null : p.get(partition);
    }
public ILog getLog ( String topic , int partition ) { TopicNameValidator . validate ( topic ) ; Pool < Integer , Log > p = getLogPool ( topic , partition ) ; return p == null ? null : p . get ( partition ) ; }
Get the log if exists or return null

@param topic     topic name
@param partition partition index
@return a log for the topic or null if not exist