Skip to content

Is there any drawback to using the default logger? #2130

Answered by gabime
bobgeller401 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Thanks for the nice feedback!

No drawback except maybe a slight performance penalty since spdlog needs to fetch the logger from the registry in each call:

return details::registry::instance().get_default_raw();

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bobgeller401
Comment options

Answer selected by bobgeller401
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants