MSMK Posted February 15, 2019 Share Posted February 15, 2019 Здравствуйте! как отключить запись логов? Пробовал: UniServerModule.Logger.Enabled := False; UniServerModule.DebugMode := False; UniServerModule.ServerLogger.Enabled := False; Не помогло. Логи создаются... ...exe: 000005B4: 10:54:01 [TUniServerModule]:Server First Init. ...exe: 000005B4: 10:54:01 [TUniServerModule]:Debug Mode = ON Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 15, 2019 Share Posted February 15, 2019 Здравствуйте! Попробуйте: procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject); begin ServerLogger.Enabled := False; Logger.Enabled := False; end; Quote Link to comment Share on other sites More sharing options...
MSMK Posted February 15, 2019 Author Share Posted February 15, 2019 7 minutes ago, Sherzod said: Здравствуйте! Попробуйте: procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject); begin ServerLogger.Enabled := False; Logger.Enabled := False; end; Спасибо! работает. И еще вопрос: UniSession.Log(); UniServerModule.Logger.AddLog(); запись сообщений сессии и сервера происходит в один файл, это делается синхронно? если будут производить записи несколько сессий одновременно? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 15, 2019 Share Posted February 15, 2019 Да, синхронно. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.