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

DictionaryLogger : A new way of logging #52

Open
AmenJlili opened this issue May 21, 2024 · 2 comments
Open

DictionaryLogger : A new way of logging #52

AmenJlili opened this issue May 21, 2024 · 2 comments
Labels
enhancement New feature or request up-for-grabs

Comments

@AmenJlili
Copy link
Member

Some thoughts about logging in the SDK just to start conversation.

Background: I log my exceptions to the PDM file system. This has the unfortunate consequence of requiring check in and check outs and it is some what annoying to write that code. I have been thinking about a new type of logging called Dictionary logger. This can be added to the PDMSDK.
Features:
The Dictionary Logger would use a PDM dictionary as storage (No need for check in or check out). AddInBase.Identity.Name and Version can be used to name the dictionary.
The Dictionary Logger can be easily flushed. This is concerning as to how this affects PDM in terms of performance. Imagine if you had have thousands of logs.
A Simple UI can be developed to show the logs in the administration tool.
The Logger is perfect for logging stuff during common hooks such as check-in or check outs without having to show error message boxes to the user.

@AmenJlili AmenJlili added enhancement New feature or request up-for-grabs labels May 21, 2024
@AmenJlili
Copy link
Member Author

I figured the UI would look something like this: It sounds like it is a lot of work.
image

@AmenJlili
Copy link
Member Author

It might be interesting to use the Winforms control from this:

https://github.com/gragra33/LogViewerControl

AmenJlili added a commit that referenced this issue Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request up-for-grabs
Projects
None yet
Development

No branches or pull requests

1 participant