Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'Create LogFile' option is on, but the option is not working when program is running. #147

Merged
merged 2 commits into from Apr 24, 2024

Conversation

MaxMadcc
Copy link
Contributor

1.Fix LogFile controls are disabled when the Create LogFile option is on.
20240420234658

#142

2.Fix 'Create LogFile' option is on, but the option is not working when program is running.

Fix  'Create LogFile'  option is on, but the option is not working when program is running.
@gbakeman gbakeman added the bug Something isn't working label Apr 24, 2024
@gbakeman gbakeman linked an issue Apr 24, 2024 that may be closed by this pull request
Logger.vb:
- Log file writing can be enabled or disabled by changing the `IsWritingToFile` property, or by calling the `Initialize`, `Delete` or `Terminate` subroutines.
- Introduced new `TerminateLogFile` subroutine that gracefully closes a log file with a terminating line, without deleting the whole file. `DeleteLogFile` will terminate and delete the file.
- Removed `TEST_RELEASE_DIRS` compiler directive so debug builds send log files to the executable.

WinNUT.vb:
- Renamed `WinNUT_PrefsChanged` subroutine to ApplyApplicationPreferences
- Logger object configuration is now updated in that subroutine - logging configuration does not need to be modified from anywhere else in the code.
- Centralized gauge initialization code into one place, removed from form load code.

- Additional Pref Gui tweaks to how logging controls are handled, for better consistency.
- Modified tooltip to be more concise.
- Updated project-wide translations to match entries that need translating.
@gbakeman
Copy link
Contributor

I went and took the liberty to make a few other tweaks I had been wanting to make to how logging works - thank you for making this contribution! If you have the time, please also consider contributing to our translations - I know there have been a few changes lately that need translating.

@gbakeman gbakeman merged commit 766a407 into nutdotnet:dev-2.3 Apr 24, 2024
1 check passed
gbakeman added a commit that referenced this pull request Apr 27, 2024
Fix  'Create LogFile'  option is on, but the option is not working when program is running.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LogFile controls are disabled when the Create LogFile option is on
2 participants