log: fixing a freeze when a file log cannot be written
log framework now reopens periodicaly log files