Close log file
#2005
-
Hi,
My build is failing with sonar inspection that opened file is never close. Does anyone can confirm that spdlog will close the file during the |
Beta Was this translation helpful? Give feedback.
Answered by
tt4g
Jul 19, 2021
Replies: 1 comment
-
spdlog/include/spdlog/details/file_helper-inl.h Lines 23 to 26 in 100f300 Should you call |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pagorek18
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
file_helper
destructor will close the file.spdlog/include/spdlog/details/file_helper-inl.h
Lines 23 to 26 in 100f300
Should you call
spdlog::shutdown()
before application exit.Because this function release all logger from spdlog global registry.