logging init magic