How to use debug.log

I am trying to use debug.log to see if a script is working, but I don’t know what is up with the parsing error in the script
C#

using UnityEngine;
using System.Collections;

public class SignScript : MonoBehaviour {
	void onTriggerStay() {
		if (Input.GetKey (KeyCode.E) && gameObject.tag = "Player") {
			Debug.Log("Hello");
		}
	}
}

You must use double-equal to compare a value ‘==’, as in gameObject.tag == “Player”. Single-equal ‘=’ is for assigning a value only.