please add error logging for each function with automatic sending of error report to the server
Can you provide a lot more information about the context of your suggestion?
What problem are you facing?
What software?
What functions?
That of course may be impossible but … what server? what kind of messaging interface?
It is desirable that all error messages are sent to your Linux server.
Yes, @FranklyFlawless does have a server… They all should be directed there from everyone
But seriously: collecting logs is for those, who want some extra security (although it’s after the incident, even if you have something else going through and analyzing the logs constantly). This is so extra that it’s hard to imagine this being set up for all and done automatically. You need a server and service and not many have those. On the latter, rsyslog is a mighty tool (Welcome to Rsyslog — rsyslog 8.18.0.master documentation - it’s a hefty manual to set one up, and for starters you may want to look at something more straight forward like: How to Set Up Centralized Logging on Linux with Rsyslog | Better Stack Community). Several devices and other softwares have logforwarding and combining logs makes them more valuable/revealing.
Bonus points: if you really want to get most out of logs, they need to be long enough (not just a few weeks, takes disk space), and they need to be in sync with clocks (times of the different devices). And they need to be monitored. Just sending them somewhere isn’t that useful.
Some old threads close to this: https://forums.puri.sm/t/how-to-get-lirem-5-kernel-log-in-var-log-syslog-in-addition-to-systemd-journal
Depends on your use case.
Step 1: Tips & Tricks · Wiki · Librem5 / Librem 5 Community Wiki · GitLab
Then you need to configure your syslogd
to send stuff off-host.
Then you need a server to receive the stuff.
Who knows whether the OP intended the comment to apply to the Librem 5 or to some other platform - but the overall principles are the same.