Improve logging with spdlog
the component log files are created and opened during object instantiation, they are not closed immediately after the object is instantiated. This would lead to an error under windows because the number of opened files is limited. An improvement is needed whether to modify this limit or the logging behaviour.