Skip to content

Revision - SDL-0117 Configurable time before shutdown#10

Open
AKalinich-Luxoft wants to merge 2 commits intomasterfrom
feature/sdl_0117_configurable_time_before_shutdown_revisions
Open

Revision - SDL-0117 Configurable time before shutdown#10
AKalinich-Luxoft wants to merge 2 commits intomasterfrom
feature/sdl_0117_configurable_time_before_shutdown_revisions

Conversation

@AKalinich-Luxoft
Copy link

To prevent missing logs after SDL shutdown, additional ini file options should be added :

  • Write all logs to file system before shutdown
  • Maximum time of SDL shutting down

By default `FlushLogMessagesBeforeShutdown` should be false. In that case, SDL should not wait for all data to be written to the file system and stop process after receiving `OnExitAllApplications` notification.

`MaxTimeBeforeShutdown` would be used in case if `FlushLogMessagesBeforeShutdown` is `true`. It should measure time from `OnExitAllApplications` notification received. In case if writing logs to file system takes more time than specified, SDL should terminate writing and finish process.
By default `FlushLogMessagesBeforeShutdown` should be `true` to keep existing SDL behavior unchanged, so SDL will be able to dump all the log messages into the file system as it currently doing. This flag can be changed to `false` in the case when missing log messages before the shutdown are not necessary (for example in the production builds). In this case, SDL can be closed much faster.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo as it currently doing => as it's currently doing

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default `FlushLogMessagesBeforeShutdown` should be false. In that case, SDL should not wait for all data to be written to the file system and stop process after receiving `OnExitAllApplications` notification.

`MaxTimeBeforeShutdown` would be used in case if `FlushLogMessagesBeforeShutdown` is `true`. It should measure time from `OnExitAllApplications` notification received. In case if writing logs to file system takes more time than specified, SDL should terminate writing and finish process.
By default `FlushLogMessagesBeforeShutdown` should be `true` to keep existing SDL behavior unchanged, so SDL will be able to dump all the log messages into the file system as it currently doing. This flag can be changed to `false` in the case when missing log messages before the shutdown are not necessary (for example in the production builds). In this case, SDL can be closed much faster.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess coma can be omitted in In this case, SDL can ...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dboltovskyi dboltovskyi changed the title Configurable time before shutdown - revision Revision - SDL-0117 Configurable time before shutdown Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants