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; }
public UnityLogListener(UnityLogEvents events, IUnityLogView view = null) { this.events = events; logView = view; Init(); }