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

    downloading the voxl-mapper service log file

    VOXL 2
    2
    5
    88
    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.
    • Meytal LempelM
      Meytal Lempel
      last edited by

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

      Eric KatzfeyE 1 Reply Last reply Reply Quote 0
      • Eric KatzfeyE
        Eric Katzfey ModalAI Team @Meytal Lempel
        last edited by

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

        Meytal LempelM 1 Reply Last reply Reply Quote 0
        • Meytal LempelM
          Meytal Lempel @Eric Katzfey
          last edited by

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

          Eric KatzfeyE 1 Reply Last reply Reply Quote 0
          • Eric KatzfeyE
            Eric Katzfey ModalAI Team @Meytal Lempel
            last edited by

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

            Meytal LempelM 1 Reply Last reply Reply Quote 0
            • Meytal LempelM
              Meytal Lempel @Eric Katzfey
              last edited by

              @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
              • First post
                Last post
              Powered by NodeBB | Contributors