logger

nice hint from the Season 3, episode 1 Tuxradar podcast – logger. You can add notes to the system log, even as a user. So:

$ logger added a new kernel
$ sudo tail /var/log/messages.log
Feb 24 21:45:41 localhost kernel: usb 3-2.1: new full speed USB device using uhci_hcd and address 46
Feb 24 21:45:41 localhost kernel: hub 3-2.1:1.0: USB hub found
Feb 24 21:45:41 localhost kernel: hub 3-2.1:1.0: 4 ports detected
Feb 24 21:45:42 localhost kernel: usb 3-2.1.1: new full speed USB device using uhci_hcd and address 47
Feb 24 21:55:20 localhost -- MARK --
Feb 24 22:06:12 localhost jdarnold: added a new kernel

That’s pretty cool. As I showed, I just added a note that I have a new kernel now, so if there’s any question about compatibility, I’ll know!

UNIX man pages : logger (1).

Leave a Reply