samples: net: leds_demo: Convert to new logging system

Use new logging system with support for network log level.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2018-09-27 14:08:58 +03:00
parent 61cc71e4c1
commit 5ad399e0d1
2 changed files with 2 additions and 7 deletions

View file

@ -3,8 +3,6 @@ CONFIG_NETWORKING=y
CONFIG_NET_IPV6=y CONFIG_NET_IPV6=y
CONFIG_NET_LOG=y CONFIG_NET_LOG=y
CONFIG_NET_UDP=y CONFIG_NET_UDP=y
CONFIG_SYS_LOG=y
CONFIG_SYS_LOG_SHOW_COLOR=y
CONFIG_ENTROPY_GENERATOR=y CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_COAP=y CONFIG_COAP=y

View file

@ -4,11 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#if 1 #define LOG_MODULE_NAME net_leds_demo
#define SYS_LOG_DOMAIN "coap-server" #define NET_LOG_LEVEL LOG_LEVEL_DBG
#define NET_SYS_LOG_LEVEL SYS_LOG_LEVEL_DEBUG
#define NET_LOG_ENABLED 1
#endif
#include <errno.h> #include <errno.h>