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 #ifndef HIVIEWDFX_HIAPPEVENT_CONFIG_H 17 #define HIVIEWDFX_HIAPPEVENT_CONFIG_H 18 19 /** 20 * @addtogroup HiAppEvent 21 * @{ 22 * 23 * @brief Provides application event logging functions. 24 * 25 * Provides the event logging function for applications to log the fault, statistical, security, and user behavior 26 * events reported during running. Based on event information, you will be able to analyze the running status of 27 * applications. 28 * 29 * @syscap SystemCapability.HiviewDFX.HiAppEvent 30 * 31 * @since 8 32 * @version 1.0 33 */ 34 35 /** 36 * @file hiappevent_cfg.h 37 * 38 * @brief Defines the names of all the configuration items of the event logging configuration function. 39 * 40 * If you want to configure the event logging function, you can directly use the configuration item constants. 41 * 42 * Sample code: 43 * <pre> 44 * bool res = OH_HiAppEvent_Configure(MAX_STORAGE, "100M"); 45 * </pre> 46 * 47 * @since 8 48 * @version 1.0 49 */ 50 51 #ifdef __cplusplus 52 extern "C" { 53 #endif 54 55 /** 56 * @brief Event logging switch. 57 * 58 * @since 8 59 * @version 1.0 60 */ 61 #define DISABLE "disable" 62 63 /** 64 * @brief Event file directory storage quota size. 65 * 66 * @since 8 67 * @version 1.0 68 */ 69 #define MAX_STORAGE "max_storage" 70 71 #ifdef __cplusplus 72 } 73 #endif 74 /** @} */ 75 #endif // HIVIEWDFX_HIAPPEVENT_CONFIG_H