etc/fixbot-logwatch.py
author Tero Marttila <terom@fixme.fi>
Thu, 04 Feb 2010 19:38:54 +0200
changeset 38 66a42168c80b
parent 35 5b6043ce9686
child 40 b9fdb7710768
permissions -rw-r--r--
allow config .py's to process their own locals
import logwatch_filters as filters
from logwatch_sources import *

def sources () :
    """
        Return a sequence of LogSource objects
    """

    return (
        Fifo("auth", "logs/auth.fifo", (
            filters.sudo,
            filters.cron_killer,
            filters.all,
        )),
        Fifo("foo", "foo", (
            filters.all,
        )),
    )