Choose style:

Author Topic: Log File Viewer  (Read 837 times)

0 Members and 1 Guest are viewing this topic.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 22474
  • Karma: 2509
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R and 9
Log File Viewer
« on: December 11, 2017, 06:58:14 pm »
As a few people have wanted to search through their log files recently, I've added a "peppermintized" version of gnome-system-log to the Peppermint 8 repo which contains the correct paths to all the log files (the version in the Ubuntu repo is missing a quite a few) .. this will work for Peppermint 8 and the Peppermint 8 Respin.

To install:
Code: [Select]
sudo apt-get update && sudo apt-get install gnome-system-log
then just in case you already have a previous version, reset the gsettings key with:
Code: [Select]
gsettings reset org.gnome.gnome-system-log logfiles
(run that second command anyway .. even if you haven't installed a previous version, it can't hurt)

You'll now find the log file viewer in the main menu at:-

Menu > System Tools > System Log



Hint:-

When looking for the log file for recently installed packages .. you'll most likely want to be looking at "history.log" more than "dpkg.log".

Also be aware the log file viewer doesn't text wrap .. instead entries scroll off to the side on a single line.



[EDIT]

If anyone wants it for Peppermint 7 just ask, and I'll push it to the PM7 repos too.
« Last Edit: December 11, 2017, 07:11:18 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1473
  • Karma: 146
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): peppermintOS 9
Re: Log File Viewer
« Reply #1 on: June 25, 2018, 12:49:34 pm »
Hey @PCNetSpec... this was marked as "new" today... though no replies were ever posted... until now...
spence
PeppermintOS 9 installed  on:
'05 Compaq Presario M200
'11 Toshiba Satellite L775D
'16 Antec Aria rebuild


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 22474
  • Karma: 2509
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R and 9
Re: Log File Viewer
« Reply #2 on: June 25, 2018, 12:53:05 pm »
Clear your browser cache spence, because it wasn't for me until you posted
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1473
  • Karma: 146
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): peppermintOS 9
Re: Log File Viewer
« Reply #3 on: June 25, 2018, 01:15:35 pm »
 ;) will do... but now I wonder if it was synchronistic? Is this available already for P9?
spence
PeppermintOS 9 installed  on:
'05 Compaq Presario M200
'11 Toshiba Satellite L775D
'16 Antec Aria rebuild


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 22474
  • Karma: 2509
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R and 9
Re: Log File Viewer
« Reply #4 on: June 25, 2018, 06:45:04 pm »
It is spence but until I add a modified version to our repo it won't show all the log files .. just SOME of them.

I had to modify the version in PM8 to show all the logs .. I'll get round to doing one for PM9 when I have time.

Please remind me in a week or two if I forget.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 22474
  • Karma: 2509
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R and 9
Re: Log File Viewer
« Reply #5 on: June 25, 2018, 08:21:28 pm »
Okay I've had a look at this...

BUT...

As there is now no logfile at /var/log/dmesg and that's the logfile you're likely to want to view the most often.

In Peppermint 9 you'd be better off installing gnome-logs which is the new GUI viewer for systemd's 'journalctl' binary logs .. and this DOES contain the dmesg output (listed as "System") and it has a couple of benefits

a) it's in the right order, latest entries at the TOP.
and
b) It stores logs for the last 5 boots .. so you can compare output from a breakage to a log where whatever broke was still working.

journalctl output formatting will take a bit of getting used (I'm used to the old formatting), and I'll never understand why systemd wants to save logs as binaries (WTF was wrong with human readable plain text logs ?) but it does seem to contain all the info.

So for Peppermint 9:
Code: [Select]
sudo apt install gnome-logs
instead.

You'll then find the log file viewer at

Menu > System > Logs
« Last Edit: June 25, 2018, 08:30:25 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1473
  • Karma: 146
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): peppermintOS 9
Re: Log File Viewer
« Reply #6 on: June 26, 2018, 12:53:28 am »
very cool thanks.... already repaired a few things in my hosts and reminded me to purge bluetooth things again...    ;)
spence
PeppermintOS 9 installed  on:
'05 Compaq Presario M200
'11 Toshiba Satellite L775D
'16 Antec Aria rebuild


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 22474
  • Karma: 2509
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R and 9
Re: Log File Viewer
« Reply #7 on: June 26, 2018, 10:14:16 am »
NP, glad you've found it useful :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec