Change initialization order for logsys logging to files to work properly.