62 lines
1.6 KiB
Forth
62 lines
1.6 KiB
Forth
# Copyright (c) 2021 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config LOG_BACKEND_FS
|
|
bool "File system backend"
|
|
depends on FILE_SYSTEM
|
|
select LOG_OUTPUT
|
|
help
|
|
When enabled, backend is using the configured file system to output logs.
|
|
As the file system must be mounted for the logging to work, it must be
|
|
either configured for auto-mount or manually mounted by the application.
|
|
Log messages are discarded as long as the file system is not mounted.
|
|
|
|
if LOG_BACKEND_FS
|
|
|
|
backend = FS
|
|
backend-str = fs
|
|
source "subsys/logging/Kconfig.template.log_format_config"
|
|
|
|
config LOG_BACKEND_FS_AUTOSTART
|
|
bool "Automatically start fs backend"
|
|
default y
|
|
help
|
|
When enabled automatically start the file system backend on
|
|
application start.
|
|
|
|
config LOG_BACKEND_FS_OVERWRITE
|
|
bool "Old log files overwrite"
|
|
default y
|
|
help
|
|
When enabled backend overwrites oldest log files.
|
|
In other case, when memory is full, new messages are dropped.
|
|
|
|
config LOG_BACKEND_FS_FILE_PREFIX
|
|
string "Log file name prefix"
|
|
default "log."
|
|
help
|
|
User defined name of log files saved in the file system.
|
|
The prefix is followed by the number of log file.
|
|
|
|
config LOG_BACKEND_FS_DIR
|
|
string "Log directory"
|
|
default "/lfs1"
|
|
help
|
|
Directory to which log files will be written.
|
|
|
|
config LOG_BACKEND_FS_FILE_SIZE
|
|
int "User defined log file size"
|
|
default 4096
|
|
range 128 1073741824
|
|
help
|
|
Max log file size (in bytes).
|
|
|
|
config LOG_BACKEND_FS_FILES_LIMIT
|
|
int "Max number of files containing logs"
|
|
default 10
|
|
help
|
|
Limit of number of files with logs. It is also limited by
|
|
size of file system partition.
|
|
|
|
endif # LOG_BACKEND_FS
|