--- a/logwatch_config.py.dist Wed Mar 26 02:30:34 2008 +0200
+++ b/logwatch_config.py.dist Wed Mar 26 03:03:46 2008 +0200
@@ -1,13 +1,19 @@
-from logwatch_filters import *
+import logwatch_filters as filters
+from logwatch_sources import *
-# log_files is a sequence of three-tuples
-log_files = (
- # (name, filename, filter-seq))
- # name is used for display purposes, filename is the file to follow, and filter-seq is a list of filters to apply to each line of output
- # filters should inherit from logwatch_filters.Filter
- ("auth.log", "/var/log/auth.log", (
- SudoFilter(),
-# SSHFilter(),
- )),
-)
+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,
+ )),
+ )
+