Switched to use python logging module.
Added xpath option (undocumented yet).