Debug.LogWarning and Debug.LogError already do that. What I do end up doing is that I almost always try to standardize putting the name of the system or script file at the beginning of the log message in brackets, like [WebsocketManager] or [EnemyBehavior] so I can identify it in build logs.

Comments