genericWriter logging improvment.