Ejemplo n.º 1
0
        private void InitLogger()
        {
            StaRTS.Utils.Diagnostics.Logger logger = new StaRTS.Utils.Diagnostics.Logger();
            UnityLogAppender unityLogAppender      = null;

            logger.ErrorLevels = (LogLevel)3;
            logger.AddAppender(new BILogAppender(unityLogAppender));
            logger.Start();
        }
Ejemplo n.º 2
0
 public BILogAppender(UnityLogAppender unityLogAppender)
 {
     this.unityLogAppender = unityLogAppender;
     UnityUtils.RegisterLogCallback(typeof(BILogAppender).Name, new UnityUtils.OnUnityLogCallback(this.HandleUnityLog));
 }