Extract logging out to seperate project