|
|
|
|
|
by kashyapc
2952 days ago
|
|
Are they really "terrible" with "awful usability"? In my day-to-day debugging, I do find `journalctl` much better.
Let's see a couple of quick examples: - Show logs for the current boot: $ journalctl -b - To get all errors that are of priority level ERROR and worse: $ journalctl -b -p err - Show me logs for a given binary: $ journalctl /usr/sbin/libvirtd - Or via its unit file: $ journalctl -u libvirtd -l - Want to query all the errors for a given disk? Here we go: $ journalctl /dev/sda -p err And so on... |
|
The worst is 'system-cat' to send a log message (SysVInit used 'logger'). Why not just 'log'?