• paequ2@lemmy.today
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    17 hours ago

    I’m in Guix Linux land right now and I miss journald. I’m supposed to wade through all the log files in /var/log myself??

    • msherburn33@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      4 hours ago

      journalctl is the one part of systemd I really do not like. For whatever reason, it’s insanely slow, taking multiple seconds before it gets around to display anything. It also has all the wrong defaults, displaying error messages from a year ago first, while scrolling to the bottom again also takes forever and consumes 100% CPU while doing so.

      There are flags to filter and display only the relevant parts, but not only are none of them intuitive, doing a mistake there just gives you “-- No entries --”, not an error. So you can never quite tell if you typed it wrong or if were are no messages.

      Maybe it all makes more sense when studying the man page in depths and learned all the quirks, but /var/log/ kind of just worked and was fast, without any extra learning.

    • Mactan@lemmy.ml
      link
      fedilink
      arrow-up
      17
      ·
      17 hours ago

      I still have no idea how to find the right record to read but at least I can run a journalctl --follow till my crash happens

      • Ferk@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        13 hours ago

        If that approach is enough then tail -f /var/log/* could work too with multiple files, it’ll “follow” all the files and display only new lines.

    • corsicanguppy@lemmy.ca
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      3
      ·
      16 hours ago

      I’m supposed to wade through all the log files in /var/log myself??

      You configured your logging. You could have made them all one file.

      • paequ2@lemmy.today
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        16 hours ago

        Uh, sorry. I don’t follow. Is there a way to tell all programs to write to one file in Guix?