tries to log on the main folder of the project first, then source