migrate spawn structured logger config to codec