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

Enhance Logging #93

Open
gbakeman opened this issue Jul 3, 2023 · 0 comments
Open

Enhance Logging #93

gbakeman opened this issue Jul 3, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@gbakeman
Copy link
Contributor

gbakeman commented Jul 3, 2023

Core system

As a VB.Net app, there is a recommended system of Logging facilities that we could be taking more of an advantage of. We should make sure that we adhere to it as much as possible, in the following ways:

  • Take advantage of the Application Event Log
    • EventLog isn't going to work, see notes. Creating a new event log requires administrative privileges, which isn't an easy thing to consider until some part of WinNUT is operating with higher privileges.
  • Event Tracing for Windows
  • FileLog
    • Default VB.Net logging facility with some nice features like log rotation
    • Does not provide a concise and detailed amount of information per-write by default. Example: DefaultSource Information 0 MyApplication_Startup complete.
  • XmlWriterTraceListener
    • Great amount of information, but lacking in management features that the FileLog has.

Third party solutions?

Consider using a third party (open source) solution.

Additional information in (crash) logs

We need to print somewhere the NUT server and protocol version strings. Perhaps do it both in parameters and log output sections. It would also be helpful to have save a buffer of the last commands sent and received with the NUT server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant