equal
deleted
inserted
replaced
1 import logwatch_filters as filters |
1 from fixbot.logwatch import filters |
2 from logwatch_sources import * |
2 from fixbot.logwatch.sources import * |
3 |
3 |
4 def sources () : |
4 ## shared secret for API client |
5 """ |
5 api_secret = "xyz" |
6 Return a sequence of LogSource objects |
|
7 """ |
|
8 |
6 |
9 return ( |
7 ## Path to logfiles |
10 Fifo("auth", "logs/auth.fifo", ( |
8 logwatch_dir = "logs/" |
11 filters.sudo, |
|
12 filters.cron_killer, |
|
13 filters.all, |
|
14 )), |
|
15 Fifo("foo", "foo", ( |
|
16 filters.all, |
|
17 )), |
|
18 ) |
|
19 |
9 |
|
10 ## Iterable of LogSource objects |
|
11 logwatch_sources = ( |
|
12 Fifo("test", logwatch_dir + "/test.fifo", ( |
|
13 filters.all, |
|
14 )), |
|
15 ) |