Logger and test for the maincontroller