UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Where are logs in focal ?

    Scheduled Pinned Locked Moved Support
    7 Posts 3 Posters 317 Views 1 Watching
    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.
      • D Offline
        domubpkm
        last edited by

        In xenial, it is .cache/upstart
        But in focal where ? Not upstart ? or where is upstart ? because i don't see 🤓 or i'm tired..
        Thanks

        lduboeufL 1 Reply Last reply Reply Quote 0
        • lduboeufL Offline
          lduboeuf @domubpkm
          last edited by

          @domubpkm on focal you can use now journalctl

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            domubpkm @lduboeuf
            last edited by

            @lduboeuf Thanks but I don't know how to use and analyze the result of this command. I would like to know if there is a specific logs directory somewhere like 'upstart' please. If so, what is the path?

            The log viewer (focal) I'm using doesn't seem to give me a path in parameters. Maybe it's normal but i would like to understand why. Thanks again.

            lduboeufL 1 Reply Last reply Reply Quote 0
            • lduboeufL Offline
              lduboeuf @domubpkm
              last edited by

              @domubpkm said in Where are logs in focal ?:

              @lduboeuf Thanks but I don't know how to use and analyze the result of this command. I would like to know if there is a specific logs directory somewhere like 'upstart' please. If so, what is the path?

              The log viewer (focal) I'm using doesn't seem to give me a path in parameters. Maybe it's normal but i would like to understand why. Thanks again.

              journalctl is common on many linux system, it stores logs in /var/log/journal but hard to find things there, instead all can be done with journalctl command and you can find lots of resources on the Internet how you can use it.
              What would you like to do ?

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                domubpkm @lduboeuf
                last edited by

                @lduboeuf said in Where are logs in focal ?:

                What would you like to do ?

                Nothing in particular. Just know where the logs are stored. It was 'upstart' under Xenial.

                Z 1 Reply Last reply Reply Quote 0
                • Z Offline
                  zubozrout @domubpkm
                  last edited by

                  @domubpkm One of the reasons upgrading Ubuntu Touch from Xenial to Focal was so hard was the change from the now discontinued init system called Upstart, to systemd.

                  Generally these logs are stored in /var/log/journal (which a quick Googling will reveal), however the whole toolkit is quite different to what we used to have before so unfortunately you can't even expect the same from it.

                  I would suggest trying this app: https://open-store.io/app/logviewer.ruditimmer, which simplifies the access to logs using kjournald as a backend.

                  Regarding the journal, this might come handy: https://wiki.archlinux.org/title/Systemd/Journal

                  D 1 Reply Last reply Reply Quote 2
                  • D Offline
                    domubpkm @zubozrout
                    last edited by

                    @zubozrout said in Where are logs in focal ?:

                    I would suggest trying this app: https://open-store.io/app/logviewer.ruditimmer, which simplifies the access to logs using kjournald as a backend.

                    I of course use this very good and essential app which does the work automatically.

                    Thank you for your explanation which clarifies a little in my head. 🙂

                    1 Reply Last reply Reply Quote 1
                    • D domubpkm marked this topic as a regular topic on
                    • First post
                      Last post