Custom Log Wrapper

Normally you use UnityEngine.Debug or UnityEngine.MonoBehaviour.print for log output in your project. With Ultimate Logger you don't need to change it, you are welcome to use the same standard unity login approach as will not change ultimate logger behaviour or logger console windows output.

But for your convenience we decided to make an Ultimate Logger wrapper, just to provide 2 additional features for you.

  1. The ability to set message colour.
  2. The ability to use a custom tag. Learn more about custom the tags feature here.

See the methods reference below.

public static class U {

	//--------------------------------------
	// Message Logs & Custom Tags
	//--------------------------------------

	public static void Log(object message);
	public static void Log(object message, object tag);
	public static void Log(object message, Color color);
	public static void Log(object message, Object context);
	public static void Log(object message, object tag, Color color);
	public static void Log(object message, object tag, Object context, Color color);

	//--------------------------------------
	// Warning
	//--------------------------------------

	public static void LogWarning(object message);
	public static void LogWarning(object message, Color color);
	public static void LogWarning(object message, Object context);
	public static void LogWarning(object message, Object context, Color color);


	//--------------------------------------
	// Error
	//--------------------------------------

	public static void LogError(object message);
	public static void LogError(object message, Object context);
	public static void LogError(object message, Color color);
	public static void LogError(object message, Object context, Color color);
}