add log support, use xml as config input