예제 #1
0
        protected virtual void Init()
        {
            dicLogMsg = new Dictionary <EMLogLevel, List <STLogMessage> >()
            {
                { EMLogLevel.Normal, new List <STLogMessage>() },
                { EMLogLevel.Warnig, new List <STLogMessage>() },
                { EMLogLevel.Error, new List <STLogMessage>() },
            };

            if (events == null)
            {
                events = new UnityLogEvents();
            }

            events.EventLogNormal  += OnNormalLog;
            events.EventLogWarning += OnNormalWarning;
            events.EventLogError   += OnNormalError;
        }
예제 #2
0
 public UnityLogListener(UnityLogEvents events, IUnityLogView view = null)
 {
     this.events = events;
     logView     = view;
     Init();
 }