Move WriteLog into EpsCommon and make it public