Never open a file in write mode

The same file open in wrote mode by multiple processes = logging disaster