1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 /** 17 * @addtogroup HiAppEvent 18 * @{ 19 * 20 * @brief Provides application event logging functions. 21 * 22 * Provides the event logging function for applications to log the fault, statistical, security, and user behavior 23 * events reported during running. Based on event information, you will be able to analyze the running status of 24 * applications. 25 * 26 * @since 8 27 * @version 1.0 28 */ 29 30 /** 31 * @file hiappevent_cfg.h 32 * 33 * @brief Defines the names of all the configuration items of the event logging configuration function. 34 * 35 * If you want to configure the event logging function, you can directly use the configuration item constants. 36 * 37 * Sample code: 38 * <pre> 39 * bool res = OH_HiAppEvent_Configure(MAX_STORAGE, "100M"); 40 * </pre> 41 * 42 * @kit PerformanceAnalysisKit 43 * @library libhiappevent_ndk.z.so 44 * @syscap SystemCapability.HiviewDFX.HiAppEvent 45 * @since 8 46 * @version 1.0 47 */ 48 49 #ifndef HIVIEWDFX_HIAPPEVENT_CONFIG_H 50 #define HIVIEWDFX_HIAPPEVENT_CONFIG_H 51 52 #ifdef __cplusplus 53 extern "C" { 54 #endif 55 56 /** 57 * @brief Event logging switch. 58 * 59 * @since 8 60 * @version 1.0 61 */ 62 #define DISABLE "disable" 63 64 /** 65 * @brief Event file directory storage quota size. 66 * 67 * @since 8 68 * @version 1.0 69 */ 70 #define MAX_STORAGE "max_storage" 71 72 #ifdef __cplusplus 73 } 74 #endif 75 /** @} */ 76 #endif // HIVIEWDFX_HIAPPEVENT_CONFIG_H