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

capture dimse output #63

Open
geezer78 opened this issue Nov 21, 2023 · 3 comments
Open

capture dimse output #63

geezer78 opened this issue Nov 21, 2023 · 3 comments

Comments

@geezer78
Copy link

I would like to be able to capture the dimse output in my code.
currently its being sent to stdout which could be captured of course but makes it messy.
I would prefer getting the output as an object with the results.

it would be great if that could be added.

@knopkem
Copy link
Owner

knopkem commented Nov 21, 2023

Indeed, this would be a nice improvement. The dimse output is currently produced by dcmtk via their internal logger, but this logger can be replaced. I will have a look at it.

@knopkem
Copy link
Owner

knopkem commented Jan 30, 2024

I tried adding a logforwarder that sends the captured logs to the js land. It did work to some extend but then crashed under heavy logging, so postponed this for now, but will try to find out a solution. Seems like the issue is rather with node-addon-api than dcmtk. Anyway, the latest version was changed to log dcmtk output to a rolling file called dicom.log in order to not slowdown the service.

@geezer78
Copy link
Author

geezer78 commented Jan 30, 2024 via email

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