In Unity, we can use Debug.LogError (and other log methods) to define a context parameter along with the message. For example:
Debug.LogError
context