-
|
Hi, First of all, thank you so much for your work! The open-source community is truly amazing. My program creates an instance of a "Simulation" class, which contains a shared_ptr to a custom logger class that just encapsulate spdlog stuff. At the start of the simulation, I initialize the logger, and once the simulation is complete, I call spdlog::shutdown(). All of this is hidden from the Python user. The issue is that the log file remains locked even after calling spdlog::shutdown(). I can’t delete or move it. The only way to unlock the file is to kill the notebook kernel. I’ve also tried deleting the Python variable holding the Simulation object, but that doesn’t help. Thanks a lot for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
spdlog does not acquire locks for files. |
Beta Was this translation helpful? Give feedback.
spdlog does not acquire locks for files.
Isn't the wrapper library acquiring locks for the log files?