code: static final String createTag(final String name) {
  		if (name.length() <= MAX_TAG_LEN) {
  			return name;
  		}
  
  		final char[] tag = name.toCharArray();
  		final int arrayLen = tag.length;
  		int len = 0;
  		int mark = 0;
  
  		for (int i = 0; i < arrayLen; i++, len++) {
  			if (tag[i] == '.') {
  				len = mark;
  
  				if (tag[len] != '.') {
  					len++;
  				}
  
  				mark = len;
  
  				if (i + 1 < arrayLen && tag[i + 1] != '.') {
  					mark++;
  				}
  			}
  
  			tag[len] = tag[i];
  		}
  
  		if (len > MAX_TAG_LEN) {
  			int i = 0;
  
  			mark--;
  
  			for (int j = 0; j < len; j++) {
  				if (tag[j] == '.' && ((j != mark) || (i >= MAX_TAG_LEN - 1))) {
  					continue;
  				}
  
  				tag[i++] = tag[j];
  			}
  
  			len = i;
  
  			if (len > MAX_TAG_LEN) {
  				len = MAX_TAG_LEN;
  			}
  		}
  
  		return new String(tag, 0, len);
  	}
docs: Create a compatible logging tag for Android based on the logger name.