Break out logging stuff into a separate package