Re: Going for Logwatch 8.0
Geert Janssens <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Organization | Kobalt W.I.T. |
| Message-ID | <[email protected]> |
I have been following this thread in the background. I think most of the interface changes make sense. I was just wondering whether is would be possible to have multiple output switches, like one for mail and one to save the output for use on a website. I have been playing with this idea for some time now, as I think both methods have their advantages: - the daily mails help to spot problems rapidly, as I follow these up quite frequently. But I don't tend to keep such mails around for a long time, as it clutters my mailboxes. - a website that can be used to display arbitrary logs (that were previously saved as html by logwatch) would be useful as an archive, or could be used to spot trends. Of course, I'm not sure logwatch could do this, or maybe I could just launch logwatch twice with different options for this. Regards, Geert On Tuesday 29 May 2007 19:45, Mike Tremaine wrote: > I think I've got most of the code worked out for the new output/format > switches I'll have to run some tests on it tonight or tomorrow before I > commit it to CVS but it should be pretty clean. I got rid of some > variables and added more comments. The interface now looks like > > New: > > --output stdout [default], mail, file > --format text [default], html > --encode none [default], base64 > --save [flips output file] > --mailto [flips output mail] > > > We gained --output file in the process because it was easier and made > sense for the switch that checks for OUTPUT filehandle. Of course --save > <Filename> is a shortcut and flips --output file for you. > > I do have one nagging piece of code which is the "sprintf" calls in > output, which I know I moved from some older code long ago when I > unified the output sub. Anyone actually using this "formatted" output. > As it stands it is impossible in my current version to get to these, to > "re-enable" them I'd have to add another --format type but I wondering > if it is worth it. I think these came from the PLD folks. > > Also I anyone can gimme some feedback on the problems with Multimail, > splithosts, hostnames I'd like to clean that up while I'm at it. > > -Mike > _______________________________________________ > Logwatch-Devel mailing list > [email protected] > http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel -- Kobalt W.I.T. Web & Information Technology Brusselsesteenweg 152 1850 Grimbergen Tel : +32 479 339 655 Email: [email protected]