adding xml writer to write in Log.xml