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

Ability to turn off logger completely #46

Closed
vdecine opened this issue Feb 13, 2015 · 3 comments
Closed

Ability to turn off logger completely #46

vdecine opened this issue Feb 13, 2015 · 3 comments

Comments

@vdecine
Copy link

vdecine commented Feb 13, 2015

It would be nice if there was a macro only interface to the logger, so that it could easily be removed from a whole project.

@gabime
Copy link
Owner

gabime commented Feb 13, 2015

How about the SPDLOG_TRACE and SPDLOG_DEBUG macros ?

@vdecine
Copy link
Author

vdecine commented Feb 13, 2015

As I understand, it does not remove everything as you still have a logger object in your code. Also why are there just two levels available as a macro ?

@gabime
Copy link
Owner

gabime commented Feb 13, 2015

These are for debugging usage- otherwise the regular log levels should be used. they almost cost nothing if turned off..

@gabime gabime closed this as completed Feb 25, 2015
bachittle pushed a commit to bachittle/spdlog that referenced this issue Dec 22, 2022
* Work on inline namespace

* Add an inline version namespace

* Reformat
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