Make logger generic.