diff options
author | xengineering <me@xengineering.eu> | 2025-03-21 22:07:26 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-03-21 22:07:26 +0100 |
commit | fcbd6ac3415d4a122d21b2e379ccf170620f45da (patch) | |
tree | 9d13560f540ce89a737192f731bdcfeabb76d899 /fw/prj.conf | |
parent | 5f457c4786b270f0918294b09f32c484f165e2ef (diff) | |
download | iot-contact-fcbd6ac3415d4a122d21b2e379ccf170620f45da.tar iot-contact-fcbd6ac3415d4a122d21b2e379ccf170620f45da.tar.zst iot-contact-fcbd6ac3415d4a122d21b2e379ccf170620f45da.zip |
fw: syslog: Add static syslog logging
Network-based logging via the syslog protocol allows to log from many
IoT devices to a central log server.
This makes reading logs way easier. Choosing UDP removes the need for
logic keeping a state. Maybe dropped packages are acceptable for the use
case but should be rare anyway.
Diffstat (limited to 'fw/prj.conf')
-rw-r--r-- | fw/prj.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fw/prj.conf b/fw/prj.conf index 9c84c48..9ac1b51 100644 --- a/fw/prj.conf +++ b/fw/prj.conf @@ -7,3 +7,15 @@ CONFIG_SHELL_PROMPT_UART="[iot-contact] " CONFIG_NETWORKING=y CONFIG_NET_SHELL=y +CONFIG_NET_SOCKETS=y + +CONFIG_LOG=y +CONFIG_LOG_BACKEND_NET=y +CONFIG_LOG_BACKEND_NET_SERVER="[2001:db8::2]:514" +CONFIG_LOG_MODE_DEFERRED=y + +# static IP address configuration is currently required for successful syslog +CONFIG_NET_CONFIG_SETTINGS=y +CONFIG_NET_CONFIG_NEED_IPV6=y +CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1" +CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3 |