added logging to LcBinWriter