Added persistent logging support and clrlog logging