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

Feature: Persistent Logs #507

Open
hecon5 opened this issue Mar 27, 2024 · 2 comments
Open

Feature: Persistent Logs #507

hecon5 opened this issue Mar 27, 2024 · 2 comments

Comments

@hecon5
Copy link
Contributor

hecon5 commented Mar 27, 2024

One thing I'd like to implement is persistent logging in this application. The current add-in gets obliterated when it's unloaded, so any logs need to stay external to the addin, either via a log file or a separate "backend" addin database. These both have merits and detractors, so I thought it best to discuss.

Why implement:

  • help track down intermittent bugs
  • timing checks between development
  • complete deploy logs when using a runner for build.
  • per-application build notes

Before I got too far, I thought I'd make an issue for discussion.

I've also built up on the clsLog pretty significantly, and almost have this ready as a drop-in replacement for the current clsLog, which can also capture user inputs and messages sent to the user during build.

@josef-poetzl
Copy link

josef-poetzl commented Mar 27, 2024

If I understand you correctly, you are primarily concerned with build logs.
(The export informations could be included directly in the repository).

For example, I use the "Run Before Export" feature to start a procedure in an add-in.

Just as an idea:
Would this "Build Logger" perhaps also be an addition (add-in) that could be started via "Run After Build" and, for example, collect the result of Log and process it further?
Or perhaps you could also design an interface that you can activate in "Run Before Build" and "hook into" (e.g. via call back procedures) the logger.

Something to consider:
Maybe allow more than just one procedure to be started?

My main thought here is that VCS should be VCS and not take on additional tasks. It is better to create an interface that allows these "non-VCS" tasks to be performed with other add-ins.

@hecon5
Copy link
Contributor Author

hecon5 commented Mar 27, 2024

primarily concerned with build logs.

Not really; logs at large are the concern. This affects all parts of using the addin, export/import/build/add in development, etc.

Would this "Build Logger" perhaps also be an addition (add-in) that could be started via "Run After Build" and, for example, collect the result of Log and process it further?

No, this would be an integral component of the addin; it would be only concerned with logs from the addin itself (build/export/settings management/errors from the add in).

My main thought here is that VCS should be VCS and not take on additional tasks. It is better to create an interface that allows these "non-VCS" tasks to be performed with other add-ins.

This would only be concerned with MSAccessVCS Addin, nothing external. This would be a log function which replaces the existing clsLog function.

The only reason I mentioned 'external' to the addin was that the ephemeral nature of addins: they are effectively 'reset' to their prior state as soon as Access unloads them (either by closing Access or otherwise being unloaded). This would not be expected to load / save logs from anything else...though one could conceivably build that into a collector...that would be entirely out of the scope of this effort.

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

No branches or pull requests

2 participants