1 /* 2 * Copyright (c) 2022 Winner Microelectronics Co., Ltd. All rights reserved. 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 * This file was generated by Apache newt version: 1.8.0-dev 18 */ 19 20 #ifndef H_MYNEWT_LOGCFG_ 21 #define H_MYNEWT_LOGCFG_ 22 23 #include "modlog/modlog.h" 24 #include "log_common/log_common.h" 25 26 #define BLE_HS_LOG_DEBUG(...) IGNORE(__VA_ARGS__) 27 #define BLE_HS_LOG_INFO(...) MODLOG_INFO(4, __VA_ARGS__) 28 #define BLE_HS_LOG_WARN(...) MODLOG_WARN(4, __VA_ARGS__) 29 #define BLE_HS_LOG_ERROR(...) MODLOG_ERROR(4, __VA_ARGS__) 30 #define BLE_HS_LOG_CRITICAL(...) MODLOG_CRITICAL(4, __VA_ARGS__) 31 #define BLE_HS_LOG_DISABLED(...) MODLOG_DISABLED(4, __VA_ARGS__) 32 33 #define DFLT_LOG_DEBUG(...) IGNORE(__VA_ARGS__) 34 #define DFLT_LOG_INFO(...) MODLOG_INFO(0, __VA_ARGS__) 35 #define DFLT_LOG_WARN(...) MODLOG_WARN(0, __VA_ARGS__) 36 #define DFLT_LOG_ERROR(...) MODLOG_ERROR(0, __VA_ARGS__) 37 #define DFLT_LOG_CRITICAL(...) MODLOG_CRITICAL(0, __VA_ARGS__) 38 #define DFLT_LOG_DISABLED(...) MODLOG_DISABLED(0, __VA_ARGS__) 39 40 #define MFG_LOG_DEBUG(...) IGNORE(__VA_ARGS__) 41 #define MFG_LOG_INFO(...) IGNORE(__VA_ARGS__) 42 #define MFG_LOG_WARN(...) IGNORE(__VA_ARGS__) 43 #define MFG_LOG_ERROR(...) IGNORE(__VA_ARGS__) 44 #define MFG_LOG_CRITICAL(...) IGNORE(__VA_ARGS__) 45 #define MFG_LOG_DISABLED(...) MODLOG_DISABLED(128, __VA_ARGS__) 46 47 #endif 48