3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2016-2017 Nest Labs, Inc.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 * This file defines compile time configuration of the Event Logging profile
27 * @def CHIP_CONFIG_EVENT_SIZE_RESERVE
30 * Initial size to reserve for event. The logging subsystem ensures
31 * this space is available in the buffer before attempting to store
34 #ifndef CHIP_CONFIG_EVENT_SIZE_RESERVE
35 #define CHIP_CONFIG_EVENT_SIZE_RESERVE 196
36 #endif /* CHIP_CONFIG_EVENT_SIZE_RESERVE */
39 * @def CHIP_CONFIG_EVENT_SIZE_INCREMENT
42 * When the initial reserved size proves insufficient, clean out the
43 * buffer in following increments.
45 #ifndef CHIP_CONFIG_EVENT_SIZE_INCREMENT
46 #define CHIP_CONFIG_EVENT_SIZE_INCREMENT 8
47 #endif /* CHIP_CONFIG_EVENT_SIZE_INCREMENT */
50 * @def CHIP_CONFIG_EVENT_LOGGING_MAXIMUM_UPLOAD_SECONDS
53 * The maximum time (in seconds) between log uploads. The
54 * system is guaranteed to attempt to offload the log buffer at
55 * least this often. The value is used to initialize chip
56 * LoggingConfiguration. This is only relevant for BDX uploads.
58 #ifndef CHIP_CONFIG_EVENT_LOGGING_MAXIMUM_UPLOAD_SECONDS
59 #define CHIP_CONFIG_EVENT_LOGGING_MAXIMUM_UPLOAD_SECONDS 86400
63 * @def CHIP_CONFIG_EVENT_LOGGING_DEFAULT_IMPORTANCE
66 * The default importance of events to be logged. It is used
67 * to initialize the chip LoggingConfiguration.
69 #ifndef CHIP_CONFIG_EVENT_LOGGING_DEFAULT_IMPORTANCE
70 #define CHIP_CONFIG_EVENT_LOGGING_DEFAULT_IMPORTANCE chip::Profiles::DataManagement::Production
74 * @def CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS
77 * By default, don't record UTC timestamps.
79 #ifndef CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS
80 #define CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS 0
84 * @def CHIP_CONFIG_EVENT_LOGGING_EXTERNAL_EVENT_SUPPORT
87 * Enable or disable support for externally managed event storage
89 #ifndef CHIP_CONFIG_EVENT_LOGGING_EXTERNAL_EVENT_SUPPORT
90 #define CHIP_CONFIG_EVENT_LOGGING_EXTERNAL_EVENT_SUPPORT 0