Added logging support.
another thanks to the xposed theme