Update basiclogger.py reuse logging file

Change in order to be able to reuse the opened file