logger change to write to console when rawWrite is invoked.