Description:
Mails paludis's elog, einfo, ewarn and(or) eerror messages via email.
Dependencies:
some mailer
Just install the package.
Code:
paludis -i app-paludis/paludis-hooks-log-mailer
Enable the log-mailer extended use flag in the /etc/paludis/use.conf file, by adding log-mailer to the line.
Code:
* PALUDIS_HOOKS: log-mailer .......
Then run:
Code:
paludis -i paludis-hooks --dl-reinstall if-use-changed
You can see and change all the possible options in the /etc/paludis/hooks/config/log-mailer.conf
You might want to change some of the following lines:
Code:
# mail options # ------------ # MAIL_INCLUDE="ERROR WARN LOG" # MAIL_TO="root@localhost localhost" # format of date/time in log files # -------------------------------- # TS_FORMAT="%Y-%m-%d %H:%M:%S.%3N"
There are many other options, too. Just open at the log-mailer.conf to see them.
To enable the hook you can use eselect with the command
Code:
eselect paludis-hook enable log-mailer
To disable the hook you can use eselect just like the example above shows, but by changing enable to disable like this
Code:
eselect paludis-hook disable log-mailer
See here for help on eselect with paludis support.
If you are interested in the sources, or helping develop, then the sources can be fetched from our anonymous git repo at:
Code:
git clone git://git.paludis-extras.org/app-paludis/paludis-hooks-log-mailer.git
of scripts:
ChangeLog:
ChangeLog file ( download )
<?xml include( "../paludis-extras/overlay/overlay/app-paludis/paludis-hooks-log-mailer/ChangeLog"); ?>

