Path: blob/master/thirdparty/openxr/src/common/android_logging.h
9903 views
// Copyright (c) 2018-2025 The Khronos Group Inc.1//2// SPDX-License-Identifier: Apache-2.0 OR MIT3//4// Utility macros for Android logging.56#pragma once78#ifdef XR_USE_PLATFORM_ANDROID9#include <android/log.h>1011#if !defined(LOG_TAG)12#error "LOG_TAG must be defined before including android_logging.h"13#endif1415#define ALOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)16#define ALOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)17#define ALOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)18#define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)19#define ALOGF(...) __android_log_print(ANDROID_LOG_FATAL, LOG_TAG, __VA_ARGS__)2021#endif // XR_USE_PLATFORM_ANDROID222324