Changing logger behaviour