• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

    downloading the voxl-mapper service log file

    VOXL 2
    2
    5
    185
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Meytal Lempel
      last edited by 20 Apr 2025, 14:27

      Hi!
      Where do I find the log files of each service (for example voxl-mapper) on voxl2?
      (without using the voxl-portal)
      Thank you

      E 1 Reply Last reply 20 Apr 2025, 15:29 Reply Quote 0
      • E
        Eric Katzfey ModalAI Team @Meytal Lempel
        last edited by 20 Apr 2025, 15:29

        @Meytal-Lempel Here is the logging documentation: https://docs.modalai.com/voxl-logger/

        M 1 Reply Last reply 20 Apr 2025, 16:02 Reply Quote 0
        • M
          Meytal Lempel @Eric Katzfey
          last edited by 20 Apr 2025, 16:02

          @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?

          E 1 Reply Last reply 20 Apr 2025, 19:07 Reply Quote 0
          • E
            Eric Katzfey ModalAI Team @Meytal Lempel
            last edited by 20 Apr 2025, 19:07

            @Meytal-Lempel You mean like journalctl -b -u voxl-mapper?

            M 1 Reply Last reply 25 Apr 2025, 04:31 Reply Quote 0
            • M
              Meytal Lempel @Eric Katzfey
              last edited by 25 Apr 2025, 04:31

              @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
              
              1 Reply Last reply Reply Quote 0
              1 out of 5
              • First post
                1/5
                Last post
              Powered by NodeBB | Contributors