add a logcat utility function