Added optional logging support for blacklisted path/account detection.