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

How much does easyloggingpp rely on STL? #837

Open
lgacnik opened this issue Jul 25, 2023 · 1 comment
Open

How much does easyloggingpp rely on STL? #837

lgacnik opened this issue Jul 25, 2023 · 1 comment

Comments

@lgacnik
Copy link

lgacnik commented Jul 25, 2023

I'm not reporting a bug, I'm just looking for plain information about easyloggingpp in general.

I'm looking for a lightweight, fast, and thread-safe logger which for an embedded device. I see that easyloggingpp uses Standard Template Library which is something I want to avoid for now. However if easyloggingpp doesn't heavily rely on STL I would consider trying it out. Note that I'm not knowledgable about STL, I'm just wary of it since my hardware specs are limited. So, generally I would ask whether easyloggingpp logger heavily relies on STL or/and is spdlog applicable for use on embedded devices as well?

@abumq
Copy link
Owner

abumq commented Aug 1, 2023

Hi @MucaGinger thanks for reaching out with this question.

The reliance of Easylogging++ on STL is minimal like the data structures (vector, map, streams). You can test it on the embedded device that you want to build for and see how it performs. I have tested it with small embedded device previously few years ago and as far as i remember i didn't have any issues but can't remember the details on specs etc.

The library makes use of preprocessor directives to enable logging for certain libraries including STL but by default its off and won't effect the build time or performance when logging an STL structure for example.

Let me know how you go. Feel free to close this issue if its resolved.

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