Format logcat output