Jump to content

MSMK

Recommended Posts

 Здравствуйте! как отключить запись логов?

Пробовал:

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

Link to comment
Share on other sites

7 minutes ago, Sherzod said:

Здравствуйте!

Попробуйте:


procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
begin
  ServerLogger.Enabled := False;
  Logger.Enabled := False;
end;

 

Спасибо! работает. И еще вопрос:

UniSession.Log();
UniServerModule.Logger.AddLog();

запись сообщений сессии и сервера происходит в один файл, это делается синхронно? если будут производить записи несколько сессий одновременно?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...