Beispiel #1
0
        // 注册文件日志,因为需要账号,因此需要等待输入账号后才能注册,可能多次注册
        public void registerFileLogDevice()
        {
#if ENABLE_FILELOG
            unRegisterFileLogDevice();

            LogDeviceBase logDevice = null;
            logDevice = new FileLogDevice();
            (logDevice as FileLogDevice).fileSuffix = Ctx.m_instance.m_dataPlayer.m_accountData.m_account;
            logDevice.initDevice();
            m_logDeviceList.Add(logDevice);

            logDevice = new FileLogDevice();
            (logDevice as FileLogDevice).fileSuffix = Ctx.m_instance.m_dataPlayer.m_accountData.m_account;
            (logDevice as FileLogDevice).filePrefix = "FightLog";   // 战斗日志
            logDevice.initDevice();
            m_fightLogDeviceList.Add(logDevice);
#endif
        }
Beispiel #2
0
        // 注册文件日志,因为需要账号,因此需要等待输入账号后才能注册,可能多次注册
        public void registerFileLogDevice()
        {
#if ENABLE_FILELOG
            unRegisterFileLogDevice();

            LogDeviceBase logDevice = null;
            logDevice = new FileLogDevice();
            (logDevice as FileLogDevice).fileSuffix = Ctx.m_instance.m_dataPlayer.m_accountData.m_account;
            logDevice.initDevice();
            m_logDeviceList.Add(logDevice);

            logDevice = new FileLogDevice();
            (logDevice as FileLogDevice).fileSuffix = Ctx.m_instance.m_dataPlayer.m_accountData.m_account;
            (logDevice as FileLogDevice).filePrefix = "FightLog";   // 战斗日志
            logDevice.initDevice();
            m_fightLogDeviceList.Add(logDevice);
#endif
        }