Changing the default tag in Debug.Log for Unity 3D

In order to debug the code for android tags are very helpful to filters the logs on the basis of tags. In Unity 3d when we use

Debug.Log

By defaults all logs have Unity as tag, is there any way to change this default tag?

2 Answers

2

You should use http://docs.unity3d.com/ScriptReference/Debug-logger.html
Debug.logger.Log(kTAG, “World”);

Debug.logger is now obsolete and you are directed to unityLogger.

Unfortunately, neither logger or unityLogger seem to have a way to globally change the default tag and it defaults to “Unity”.