On Mon, 15.07.13 23:14, Till Maas (opensource(a)till.name) wrote:
On Mon, Jul 15, 2013 at 04:14:35PM +0200, Lennart Poettering wrote:
> This feature is about not doign local mail delivery by default, by not
> installing any MTA. Instead you find the log output of cronjobs at the
> same place as you find any other log output, the journal/syslog, for
> example accessible via:
>
> journalctl -u crond
But the information cron sends via email is usually more important than
the regular log entries, because output in cron jobs usually means there
is an error. It seems wrong to store the important data hidden among
less important data.
journalctl helps you with that too:
"journalctl -p notice" will output all messages of log level "notice"
and higher, which is the stuff that matters, and what you really should
look at. And even if you do not pass this to journalctl you will get the
important lines highlighted bold and the really important ones red, so
it should be really easy to find the output that matters.
Lennart
--
Lennart Poettering - Red Hat, Inc.