Fix logFile and logFileEncoding that should not be marked as final