New backend is based on littleFS. After init, there is created new file with continuous numeration. When max size of file is reached, system creates another one. File size is limited by Kconfig option. There is possibility to overwrite old files or drop new ones. FS backend logging to file if the FS location is available. Otherwise log messages are drooped. User can also change the name of log files. Signed-off-by: Mateusz Syc <Mateusz.Syc@nordicsemi.no> Signed-off-by: Andrzej Puzdrowski <Andrzej.Puzdrowski@nordicsemi.no>
78 lines
1.3 KiB
CMake
78 lines
1.3 KiB
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(NOT CONFIG_LOG_MINIMAL)
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG
|
|
log_list.c
|
|
log_core.c
|
|
log_msg.c
|
|
log_output.c
|
|
)
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_BACKEND_UART
|
|
log_backend_uart.c
|
|
)
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_BACKEND_FS
|
|
log_backend_fs.c
|
|
)
|
|
|
|
zephyr_link_libraries_ifdef(CONFIG_LOG_BACKEND_FS LITTLEFS)
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_CMDS
|
|
log_cmds.c
|
|
)
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_BACKEND_NATIVE_POSIX
|
|
log_backend_native_posix.c
|
|
)
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_BACKEND_XTENSA_SIM
|
|
log_backend_xtensa_sim.c
|
|
)
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_BACKEND_NET
|
|
log_backend_net.c
|
|
)
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_BACKEND_RTT
|
|
log_backend_rtt.c
|
|
)
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_BACKEND_SWO
|
|
log_backend_swo.c
|
|
)
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_MIPI_SYST_ENABLE
|
|
log_output_syst.c
|
|
)
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_BACKEND_ADSP
|
|
log_backend_adsp.c
|
|
)
|
|
|
|
if(CONFIG_LOG_BACKEND_SPINEL)
|
|
zephyr_library_include_directories(
|
|
${ZEPHYR_BASE}/subsys/net/lib/openthread/platform/
|
|
)
|
|
endif()
|
|
|
|
zephyr_sources_ifdef(
|
|
CONFIG_LOG_BACKEND_SPINEL
|
|
log_backend_spinel.c
|
|
)
|
|
|
|
else()
|
|
zephyr_sources(log_minimal.c)
|
|
endif()
|