@Override
 public void warning(@NonNull String msgFormat, Object... args) {
   mLogger.warning(mGradleMessageRewriter.rewriteMessages(msgFormat), args);
 }
 @Override
 public void error(@Nullable Throwable t, @Nullable String msgFormat, Object... args) {
   mLogger.error(t, mGradleMessageRewriter.rewriteMessages(Strings.nullToEmpty(msgFormat)), args);
 }