Paludis-extras

back to: packages

log-mailer

Description:

Mails paludis's elog, einfo, ewarn and(or) eerror messages via email.

Author(s): written by pilx

Dependencies:

  • some mailer

Installation

without paludis-hooks installed

Just install the package.

Code:

paludis -i app-paludis/paludis-hooks-log-mailer

if you have paludis-hooks installed

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

Configuration

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.

Enabling/Disabling the hook

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:

hook script (log-mailer.bash) (click to see) ( download )

    <?xml include( "src/app-paludis/paludis-hooks-log-mailer/log-mailer.bash.html"); ?>

send script (log-mailer-send.py) (click to see) ( download )

    <?xml include( "src/app-paludis/paludis-hooks-log-mailer/log-mailer-send.py.html"); ?>

ChangeLog:

ChangeLog file ( download )

<?xml 
include( "../paludis-extras/overlay/overlay/app-paludis/paludis-hooks-log-mailer/ChangeLog"); 
?>

Cool external links:.