downloading the voxl-mapper service log file
-
Hi!
Where do I find the log files of each service (for example voxl-mapper) on voxl2?
(without using the voxl-portal)
Thank you -
@Meytal-Lempel Here is the logging documentation: https://docs.modalai.com/voxl-logger/
-
@Eric-Katzfey thank you, but I want to download the textual notes that are written to a log file during the code execution of a service, not the recording of a pipe. Similar to dowload logs in the debug option in the voxl-portal. How do I do that?
-
@Meytal-Lempel You mean like
journalctl -b -u voxl-mapper
? -
@Eric-Katzfey Thank you! I now use journalctl and write to a file in a logger service, for example:
voxl-mapper-logger.service
[Unit] Description=Logs voxl-mapper log output to file After=voxl-wait-for-fs.service network.target network-online.target Requires=voxl-wait-for-fs.service network.target network-online.target voxl-mapper.service [Service] Type=simple ExecStart=/bin/bash -c "sleep 45 && journalctl -f -u voxl-mapper.service >> /data/logs/voxl_mapper.log" StartLimitInterval=0 Restart=always RestartSec=2s [Install] WantedBy=multi-user.target