Ejemplo n.º 1
0
        private bool InitMonitoringLog(DBMgr refDBMgr, LogStringMgr refLogStringMgr)
        {
            if (refDBMgr == null || refLogStringMgr == null)
            {
                return(false);
            }

            if (refLogStringMgr.LoadStringTable() == false)
            {
                FileLog.Instance.Write("실패! LogStringMgr 로드에 실패했습니다!");
                return(false);
            }

            m_monitoringLoggerMgr = new MonitoringLoggerMgr(m_logStringMgr);
            m_monitoringLoggerMgr.AddLogger(new MonitoringLogger_LogFile());
            m_monitoringLoggerMgr.AddLogger(new MonitoringLogger_ListBox(m_refView.refLBoxMonitoringLog));
            m_monitoringLoggerMgr.AddLogger(new MonitoringLogger_Network(m_serverMonitorClientMgr, m_netServer.commandSender));
            /// DB Log 는 작성하지 않게 해둠. aibeast (2010/05/26)
            //m_monitoringLoggerMgr.AddLogger(new MonitoringLogger_DB(m_config.ServerMonitorID, refDBMgr));
            return(true);
        }
Ejemplo n.º 2
0
 public MonitoringLoggerMgr(LogStringMgr refLogStringMgr)
 {
     m_refLogStringMgr = refLogStringMgr;
 }