Accept logging file name from parameter by default

Before this change, the filepath parameter was basically just ignored, and was causing logs to go to the wrong file in some projects - it should have precedence, and the config value used only if no filepath parameter is given.