Need help with Collision based target system.

I am trying to make a system for wall targets that would activate when hit by my projectile

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TargetHit : MonoBehaviour
{

void OnCollisionEnter(Collision collisionInfo)
{
if (collisionInfo.collider.tag == "Bullet")
{
Debug.Log("hit");

}
}
}

What is the problem you are having?

The tags work, but It is not logging so I am not sure if it works at all