etc/fixbot-logwatch.py
author Tero Marttila <terom@fixme.fi>
Thu, 04 Feb 2010 18:31:34 +0200
changeset 35 5b6043ce9686
parent 22 fixbot/logwatch_config.py.dist@1f1a21852abc
child 40 b9fdb7710768
permissions -rw-r--r--
kill off the fixbot/*.py.dist config files, prepare for reading them from etc/, add an --api-secret option. Breaks logwatch
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,
        )),
    )