code: public static InternalLogId allocate(Class<?> type, @Nullable String details) {
      return allocate(getClassName(type), details);
    }
docs: Creates a log id.
  
  @param type the "Type" to be used when logging this id.   The short name of this class will be
  used, or else a default if the class is anonymous.
  @param details a short, human readable string that describes the object the id is attached to.
  Typically this will be an address or target.