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 logs going to App directory again #111

Merged
merged 2 commits into from Oct 17, 2023
Merged

Fix logs going to App directory again #111

merged 2 commits into from Oct 17, 2023

Conversation

gbakeman
Copy link
Contributor

Logging was broken yet again due to me adding the PreRelease configuration and neglecting to configure the Common library correctly. The Common library now has a PreRelease configuration that omits the DEBUG constant so logging behaves like a normal release. In addition, the Logging class depends on .NET Framework constants for determining file location, which means logs now appear in AppData/Roaming/NUTDotNet/WinNUT Client/(current version)/. Finally, some cleanup has been done in and around the Globals file to reduce how much code there is to determine an appropriate data directory in exchange for depending on defaults provided by the Framework.

Closes #110

- Correcting PreRelease build config so that projects are building correctly as needed.
- Logger class handles its own directory since the Logging API provides default file locations.
- Removing global variables and logic relating to data paths since the only code that really used it was the Logger class.
- Specified output path for crashbugs.
- Simplified Logger initialization to be more predictable and utilize standard values and paths.
- Added a PreRelease build config to the Common library so the DEBUG constant is not defined and logging behaves like a normal release.
- Attempted to clean up project references so the Setup project stops trying to include them. It helped for some of them, and nothing appears to have broken.
@gbakeman gbakeman added bug Something isn't working enhancement New feature or request labels Oct 17, 2023
@gbakeman gbakeman added this to the 2.2 Stable Release milestone Oct 17, 2023
@gbakeman gbakeman self-assigned this Oct 17, 2023
@gbakeman gbakeman linked an issue Oct 17, 2023 that may be closed by this pull request
@gbakeman gbakeman merged commit 86b3d2e into Dev-2.2 Oct 17, 2023
1 check passed
@gbakeman gbakeman deleted the 110-log-bugfix branch October 17, 2023 17:41
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.

Log files are being sent to the application directory again
1 participant