///--------------------------------------------------------------------- #region Logger public void Register(PersonalLogger logger) { if (loggerManager == null) { loggerManager = new PersonalLoggerManager(); } loggerManager.Register(logger); }
///--------------------------------------------------------------------- public void Unregister(PersonalLogger logger) { if (logger == null) { return; } for (int i = 0; i < m_loggers.Count; i++) { if (m_loggers[i].logger == logger) { m_loggers.RemoveAt(i); return; } } }
///--------------------------------------------------------------------- #region Registering public void Register(PersonalLogger box) { if (box == null) { return; } for (int i = 0; i < m_loggers.Count; i++) { if (m_loggers[i].logger == box) { return; } } m_loggers.Add(new RegisteredLogger() { logger = box, show = false }); }
///--------------------------------------------------------------------- public void Unregister(PersonalLogger logger) { loggerManager.Unregister(logger); }