I typically run Update Native Packages (eos-update) in the Welcome EOS application. What I observed that the output generated from this is not stored in /var/log/pacman or in systemd-log or any other log file.
How can the output/logs of eos-update be stored in a log file? Either in /var/log/pacman or in systemd-log or some other log file?
eos-update uses pacman and optionally yay or paru. The logs go to files specified by them. And that should be /var/log/pacman.log.
Check that the file (and path) is writable.
I checked the /var/log/pacman it does not have the output of the eos-update command. Is there a mechanism to also redirect the output of the command eos-update to a log file? Or to JournalD? Or to another file say /var/log/eosupdate.log or similar?
Thanks for your suggestion. But the issue is that this command, i.e. eos-update | tee ~/eos-update-log.txt is not run from the EOS Welcome screen. Is there a way where I can request for it?
@cscs I had a look at the python script for eos-update. Will it be possible for me to suggest to developers and maintainers of the script to add a few additional lines of code into the script functions
echo2()
printf2()
WARN()
DIE()
such that the output is logged into the stdout/ stderr as well as the logger. If systemd-log, is present there or in another file say /var/log/eos-update.log.
We are always open to suggestions.
Since you already visited our GitHub page, you can request it there or over here.
A little clue: Just look at the top of the page on that script, and you might notice a familiar name as its developer that also appears in this thread.