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

Additional logging improvements and cleanup #19

Merged
merged 2 commits into from Aug 8, 2022

Conversation

gbakeman
Copy link
Contributor

@gbakeman gbakeman commented Aug 8, 2022

  • Lots of code cleanup throughout the project, simplifying references and removing imports.
  • Logger tweaks; max events stored in buffer is 4x increased
  • Against my earlier quest for Object-Oriented Programming, I've moved the Logger object back into Globals.
  • The Globals are now initialized in the App startup method rather than the Form's, this way they should be more "global".
  • Tweaked the crash report dialog to be slightly more predictable and user-friendly (in case copy to clipboard fails)
  • Fixed crash in Update_Gui due to missing variable

Thought I was disabling it for Release only...
- Moved Logger object and initialization back into Globals module.
- Disabled system.diagnostics listeners in app.config after trying to figure out how to change log location. It looks like setting a FileLog location in app.config isn't supported. If we're going to upgrade logging anyways, it's best to get a third party library.
- ApplicationEvents.vb now has a Startup subroutine for initializaing the Globals module and logging.
- Cleaned up Report generation subroutine. User data dir is synchronized with the Globals module, and an Explorer window is opened to the destination after the crash report is generated.
- More Logger changes. Base file name follows the ProgramName, the event buffer size has been quadrupled (and is now a property)
- Prefs_Gui no longer directly controls Logging - this is handled back in WinNUT.vb.
- Fixed crash in Update_Gui due to missing Logger variable, and cleaned up code.
WinNUT.vb:
  - After loading parameters, trigger PrefsChanged to make sure everything is applied. Logging init is also handled elsewhere now.
  - More code cleanup.
@gbakeman gbakeman added bug Something isn't working enhancement New feature or request labels Aug 8, 2022
@gbakeman gbakeman added this to the 2.2 Stable Release milestone Aug 8, 2022
@gbakeman gbakeman self-assigned this Aug 8, 2022
@gbakeman gbakeman merged commit c2a01b4 into Dev-2.2 Aug 8, 2022
@gbakeman gbakeman deleted the logging-improvements branch August 8, 2022 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant