nutdotnet / WinNUT-Client

WinForms-based client for monitoring your Uninterruptible Power Supply (UPS) connected to a Network UPS Tools (NUT) server.
GNU General Public License v3.0
186 stars 18 forks source link

Fix logs going to App directory again #111

Closed gbakeman closed 9 months ago

gbakeman commented 9 months ago

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