@Override
  public void println(int logLevel, String tag, String msg) {
    int msgLength = msg.length();
    int start = 0;
    int end;
    while (start < msgLength) {
      if (msg.charAt(start) == '\n') {
        start++;
        continue;
      }
      end = Math.min(start + maxChunkSize, msgLength);
      if (autoSeparate) {
        int newLine = msg.indexOf('\n', start);
        end = newLine != -1 ? Math.min(end,newLine) : end;
      } else {
        end = adjustEnd(msg, start, end);
      }
      printChunk(logLevel, tag, msg.substring(start, end));

      start = end;
    }
  }
Constructor.

@param autoSeparate whether the message should be separated by line separator automatically.
                    Imaging there is a message "line1\nline2\nline3", and each line has chars
                    less than max-chunk-size, then the message would be separated to 3 lines
                    automatically
@param maxChunkSize the max size of each chunk. If the message is too long, it will be
                    separated to several chunks automatically
@since 1.7.1
xlog/src/main/java/com/elvishew/xlog/printer/AndroidPrinter.java