Re: Going for Logwatch 8.0

Mike Tremaine <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Geert Janssens wrote:
> 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.


It sounds like a good idea, but :) it would take a pretty big re-working 
to get to handle that. The code is sort of like a way train rushing to 
get the output stream where it is going. We would need some well placed 
loops to get to have multiple destinations. It's possible but I'm not 
sure just how hard it would be.

Multiple calls to logwatch would be how I'd handle this or even doing 
--output file --format html to a file and then writing a small script to 
attach the page to an email after logwatch runs. It's a kludge but it's 
an easy kludge.

-Mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.