示例#1
0
        public static void UnregisterListener(LogListener listener)
        {
            foreach (var item in sLoggers.Where(x => x.Name == listener.ChannelName))
            {
                listener.Unsubscribe(item);
            }

            sListeners.Remove(listener);
        }
示例#2
0
        public static void RegisterListener(LogListener listener)
        {
            foreach (var item in sLoggers.Where(x => x.Name == listener.ChannelName))
            {
                listener.Subscribe(item);
            }

            sListeners.Add(listener);
        }