Clean code(log and xml)