set logger to application through constructor of Application