subsys logging: Enable native backend if possible

Let's always enable the native_posix backend even
if the serial is used.
Both can be used at the same time, and:
a) users expect the logger output in the invoking shell even if they
enable the UART
b) Since printk is routed to the logger twister actually needs it
for tests to pass as for native platforms it looks into the stdout
of the process.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-01-06 15:12:08 +01:00 committed by Carles Cufí
commit bd9836be8c

View file

@ -4,7 +4,7 @@
config LOG_BACKEND_NATIVE_POSIX config LOG_BACKEND_NATIVE_POSIX
bool "Native backend" bool "Native backend"
depends on ARCH_POSIX depends on ARCH_POSIX
default y if !SERIAL default y
select LOG_OUTPUT select LOG_OUTPUT
help help
Enable backend in native_posix Enable backend in native_posix