private static StringBuilder formatClassName(String className) {
    final StringBuilder b = new StringBuilder();
    final String prefix = Strings.commonPrefix(className, PACKAGE);
    Splitter.on('.')
        .splitToList(prefix)
        .forEach(
            s -> {
              b.append('/');
              b.append(s.length() > 0 ? s.charAt(0) : '?');
            });
    return b.append(className, prefix.length(), className.length()).deleteCharAt(0);
  }
Formats log records in a simple, Google-style format.
java/ui/src/main/java/com/google/security/zynamics/bindiff/logging/LogFormatter.java