Skip to content

Conversation

@yanniknelson
Copy link
Owner

@yanniknelson yanniknelson commented Dec 23, 2025

Took pull request #34 and applied requested changes

Removed the Log.h file as it only added transitive includes, is is meh practice, always good to exclude exactly what you need.
Also added RAII wrapper class around the logger and Get is now GetOrCreate (which will also Init if not already) to handle lifetime.

Took pull request #34 and applied requested changes
@yanniknelson yanniknelson added the enhancement New feature or request label Dec 23, 2025
@yanniknelson yanniknelson changed the title Improved Logger #34 Improved Logger Dec 23, 2025
@thedevmystic
Copy link
Collaborator

Well ok, I'm currently off schedule due to my exams are near, around mid february. So expect delays. Thanks :)

So turns out spdlog is not as speedy as I would have liked, after some tinkering, increasing the thread pool from 2 to 4 with a larger queue size improved this, for application performance.

However spdlog ignores the flush level for flushing to stdout  and stderr (this is dumb). This results in the stdout lagging behind the program MASSIVELY when the program executes quickly (e.g. for running a brainfck program).

This would be easily solved if only it respected the flush level (or at least gave to option to)
@yanniknelson
Copy link
Owner Author

Might be a good idea to move to the boost logging library instead of spdlog given my discovery in the latest commit evidence

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

Successfully merging this pull request may close these issues.

3 participants