1 /*
2  * Copyright (c) 2018 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #include <zephyr/app_memory/app_memdomain.h>
7 #include "ext_log_system.h"
8 
K_APP_BMEM(app_part)9 K_APP_BMEM(app_part) static ext_log_handler log_handler;
10 
11 void ext_log_handler_set(ext_log_handler handler)
12 {
13 	log_handler = handler;
14 }
15 
ext_log_system_foo(void)16 void ext_log_system_foo(void)
17 {
18 	ext_log(EXT_LOG_CRITICAL, "critical level log");
19 
20 	ext_log(EXT_LOG_ERROR, "error level log, 1 arguments: %d", 1);
21 
22 	ext_log(EXT_LOG_WARNING, "warning level log, 2 arguments: %d %d", 1, 2);
23 
24 	ext_log(EXT_LOG_NOTICE, "notice level log, 3 arguments: %d, %s, 0x%08x",
25 							100, "string", 0x255);
26 
27 	ext_log(EXT_LOG_INFO, "info level log, 4 arguments : %d %d %d %d",
28 								1, 2, 3, 4);
29 
30 	ext_log(EXT_LOG_DEBUG, "debug level log, 5 arguments: %d %d %d %d %d",
31 								1, 2, 3, 4, 5);
32 }
33