We have moved to a new Sailfish OS Forum. Please start new discussions there.
7

GUI Log File Viewer

asked 2014-03-07 20:53:14 +0200

m2 gravatar image

updated 2015-01-12 14:52:03 +0200

chemist gravatar image

Are there any plans to release GUI Log File Viewer that can be accessed from the app folder?

edit retag flag offensive close delete

Comments

What do you mean by the "app folder"? And what kind of jogs you mean? The phone uses systemd's journal, so there are many ways to get the logs outside the phone. The systemd package contains a simple gateway that is able to export the format, and provides a simple web interface so you can check the logs.

Is that what you meant?

suy ( 2014-03-07 21:08:04 +0200 )edit

I guess @m2 means the app launcher as in: An app to view journal logs. I think the android equivalent is called catlog?

Tanghus ( 2014-03-07 21:58:13 +0200 )edit

I was just thinking about this today - if it could show the live log (like the command-line utility logcat does on Android) it would be very convenient to debug issues and generally see how your Jolla reacts to outside events.

Also as we have Journald on Sailfish, it would be possible the include in the graphical tool the functionality it provides, like showing log output per application, per severity, since last long, etc.

And if it was possible to easily copy/paste individual messages or generally share them (pastebin, email, IM) it would make log based debugging super convenient.

MartinK ( 2014-03-07 22:22:44 +0200 )edit

2 Answers

Sort by » oldest newest most voted
9

answered 2017-01-11 12:43:02 +0200

coderus gravatar image

Started development of GUI for viewing systemd logs: https://openrepos.net/content/coderus/journal-viewer

edit flag offensive delete publish link more
2

answered 2014-03-07 23:02:36 +0200

suy gravatar image

This time, as an answer:

There is already the underlying functionality (the hard one) implemented in the upstream projects. All system information should be available via systemd's journal, and user applications can optionally log to the journal too if they choose so, or if they print to stdout/stderr and the output is not discarded.

Systemd, in addition, provides since version 193 systemd-journal-gatewayd, a micro web server to send the logs through HTTP in different formats. Also, Qt 5.3 will have native support for the journal, so each qDebug call logs to the journal without the application developer having to implement a custom message handler (that was done by Robin Burchell, a Jolla Sailor).

So is basically a matter of time. As of today, Sailfish OS has systemd 187 and Qt 5.1 (5.3 is not even beta). A version with recent systemd is likely soon (208 seems to be in mer-packages), but I don't see that service enabled (requires libmicrohttpd). Even though, is doubtful that Jolla would ship that package as enabled by default, since it would expose all the logs through plain HTTP. That service would be cool to be able to browse all sorts of useful information from your PC, but is not necessary if you just want to use a local application. The user nemo will be able to see user generated messages. An app to show that would be perfectly possible, and not hard. I did a small test, and is not hard to read the JSON export message format with Qt classes.

edit flag offensive delete publish link more

Comments

1

Cluttttttttttttttttttttttttttttttttttttttttttttttttttttteeeeeeeeeeeeeeeeeeeeeer.

Sorry, couldnt resist. ssh + journalctl not enough?

tortoisedoc ( 2017-01-11 15:27:53 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-03-07 20:53:14 +0200

Seen: 1,337 times

Last updated: Jan 11 '17