示例#1
0
 public static void AddLogReceiver(UCL_iLogMessageReceiver logger)
 {
     lock (Loggers) {
         if (!Loggers.Contains(logger))
         {
             Loggers.Add(logger);
         }
     }
 }
示例#2
0
 public static void Init()
 {
     Debug.unityLogger.logHandler = LogHandler;
     if (LogHandler is UCL_iLogMessageReceiver)
     {
         UCL_iLogMessageReceiver receiver = (LogHandler as UCL_iLogMessageReceiver);
         AddLogReceiver(receiver);
     }
 }