1 /*
2  * Copyright (c) 2022 Google, Inc.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef __ZEPHYR_CUSTOM_LOG_H__
8 #define __ZEPHYR_CUSTOM_LOG_H__
9 
10 #define CUSTOM_LOG_PREFIX "[CUSTOM_PREFIX]"
11 
12 #undef LOG_DBG
13 #undef LOG_INF
14 #undef LOG_WRN
15 #undef LOG_ERR
16 
17 #define LOG_DBG(...) Z_LOG(LOG_LEVEL_DBG, CUSTOM_LOG_PREFIX __VA_ARGS__)
18 #define LOG_INF(...) Z_LOG(LOG_LEVEL_INF, CUSTOM_LOG_PREFIX __VA_ARGS__)
19 #define LOG_WRN(...) Z_LOG(LOG_LEVEL_WRN, CUSTOM_LOG_PREFIX __VA_ARGS__)
20 #define LOG_ERR(...) Z_LOG(LOG_LEVEL_ERR, CUSTOM_LOG_PREFIX __VA_ARGS__)
21 
22 #endif /* __ZEPHYR_CUSTOM_LOG_H__ */
23