Skip to content

Logging to memory for unit testing and convenient analysis #97

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

Closed
MarkNahabedian opened this issue Feb 8, 2025 · 2 comments
Closed

Comments

@MarkNahabedian
Copy link

It would be handy to have a logging sink that kept the log messages as data structures in memory. This would allow for packages to unit test their logging and for automated log analysis.

I have an implementation of a logger that collects log messages into a Vector at https://github.com/MarkNahabedian/LoggingExtras.jl/tree/VectorLogger.

If this is reasonable I'll submit a pull request.

@fredrikekre
Copy link
Member

Does Test.TesLogger do what you need?

@MarkNahabedian
Copy link
Author

Yes. Thanks much.

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