Exemple #1
0
 // Token: 0x0600587E RID: 22654 RVA: 0x001EA664 File Offset: 0x001E8A64
 public void LogFormat(LogType logType, UnityEngine.Object context, string format, params object[] args)
 {
     if (logType != LogType.Log && logType != LogType.Warning)
     {
         StackTrace stackTrace = new StackTrace(3);
         this.InternalLog(string.Format("[{0}:{1}] {2}\r\n{3}", new object[]
         {
             logType.ToString(),
             DateTime.Now.ToString(),
             string.Format(format, args),
             stackTrace.ToString()
         }));
     }
     else
     {
         this.InternalLog(string.Format("[{0}:{1}] {2}", logType.ToString(), DateTime.Now.ToString(), string.Format(format, args)));
     }
     if (this.original != null)
     {
         this.original.LogFormat(logType, context, format, args);
     }
     if (VRCLog.MessageLogged != null)
     {
         VRCLog.MessageLogged(string.Format(format, args), (!(context == null)) ? context.name : "null", logType);
     }
 }
Exemple #2
0
 // Token: 0x0600587D RID: 22653 RVA: 0x001EA5CC File Offset: 0x001E89CC
 public void LogException(Exception exception, UnityEngine.Object context)
 {
     this.InternalLog(string.Format("[{0}:{1}] {2}\r\n{3}", new object[]
     {
         LogType.Exception.ToString(),
         DateTime.Now.ToString(),
         exception.Message,
         exception.StackTrace
     }));
     if (this.original != null)
     {
         this.original.LogException(exception, context);
     }
     if (VRCLog.MessageLogged != null)
     {
         VRCLog.MessageLogged(exception.Message, exception.StackTrace, LogType.Exception);
     }
 }