/// <summary> /// <para>Logs message to the Unity Console using default logger.</para> /// </summary> /// <param name="logType">The type of the log message.</param> /// <param name="tag">Used to identify the source of a log message. It usually identifies the class where the log call occurs.</param> /// <param name="message">String or object to be converted to string representation for display.</param> /// <param name="context">Object to which the message applies.</param> public void Log(LogType logType, object message) { if (!this.IsLogTypeAllowed(logType)) { return; } this.logHandler.LogFormat(logType, (Object)null, "{0}", (object)Logger.GetString(message)); }
public void Log(LogType logType, object message, Object context) { if (this.IsLogTypeAllowed(logType)) { this.logHandler.LogFormat(logType, context, "{0}", new object[] { Logger.GetString(message) }); } }
public void Log(object message) { if (this.IsLogTypeAllowed(LogType.Log)) { this.logHandler.LogFormat(LogType.Log, null, "{0}", new object[] { Logger.GetString(message) }); } }
public void Log(LogType logType, string tag, object message) { if (this.IsLogTypeAllowed(logType)) { this.logHandler.LogFormat(logType, null, "{0}: {1}", new object[] { tag, Logger.GetString(message) }); } }
public void LogError(string tag, object message, Object context) { if (this.IsLogTypeAllowed(LogType.Error)) { this.logHandler.LogFormat(LogType.Error, context, "{0}: {1}", new object[] { tag, Logger.GetString(message) }); } }
public void Log(LogType logType, object message) { bool flag = this.IsLogTypeAllowed(logType); if (flag) { this.logHandler.LogFormat(logType, null, "{0}", new object[] { Logger.GetString(message) }); } }
public void LogError(string tag, object message) { bool flag = this.IsLogTypeAllowed(LogType.Error); if (flag) { this.logHandler.LogFormat(LogType.Error, null, "{0}: {1}", new object[] { tag, Logger.GetString(message) }); } }
public void LogWarning(string tag, object message, Object context) { bool flag = this.IsLogTypeAllowed(LogType.Warning); if (flag) { this.logHandler.LogFormat(LogType.Warning, context, "{0}: {1}", new object[] { tag, Logger.GetString(message) }); } }
/// <summary> /// <para>A variant of Logger.Log that logs an error message.</para> /// </summary> /// <param name="tag">Used to identify the source of a log message. It usually identifies the class where the log call occurs.</param> /// <param name="message">String or object to be converted to string representation for display.</param> /// <param name="context">Object to which the message applies.</param> public void LogError(string tag, object message, Object context) { if (!this.IsLogTypeAllowed(LogType.Error)) { return; } this.logHandler.LogFormat(LogType.Error, context, "{0}: {1}", (object)tag, (object)Logger.GetString(message)); }
/// <summary> /// <para>A variant of Logger.Log that logs an warning message.</para> /// </summary> /// <param name="tag">Used to identify the source of a log message. It usually identifies the class where the log call occurs.</param> /// <param name="message">String or object to be converted to string representation for display.</param> /// <param name="context">Object to which the message applies.</param> public void LogWarning(string tag, object message) { if (!this.IsLogTypeAllowed(LogType.Warning)) { return; } this.logHandler.LogFormat(LogType.Warning, (Object)null, "{0}: {1}", (object)tag, (object)Logger.GetString(message)); }