liblog: Add xlog support

Change-Id: I003ab096a5dc71f25438ae3c6dbd72005d82ee77