Commandline interface for 8.0
Mike Tremaine <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
This is the outline I have lets get some comments before I really start make the changes I'll need. Current Logwatch: --print --mailto --encode --output html, mail, unformatted --save filename Notes: Because we sort of grew into this configuration it is possible to do some pretty odd things. My main goal is to prevent conflicts and make it easier to remember. New Logwatch 8.0: --output stdout [default], mail --format text [default], html --encode --save [flips output stdout] --mailto [flips output mail] Notes: I think output/format combos pretty much covers the basic settings, I've left mailto/save since they need options to make them work. Using either will force output to be set to the correct setting [mail for mailto and stdout for save]. Notice that we lose --print. Encode is a funny one since in theory you can doing something like logwatch --print --output html --encode, yes its odd but I'd rather not remove some niche function that someone might use. Plus I think making --format text-encode. html-encode is uglier then just --encode, so I'm going to leave "encode" outside of the format options [Unless anyone has a good argument against this]. Furture Options: [Mostly useless but now is the time to think of this stuff] In theory if we wanted we could add compression as an option with another perl module and the hooks something like --zip of --gzip and the output stream would get run through that [it would have to be a mime attachment for email but still]. I could also imagine having an --output ftp which would allow the output stream to be written to temp file and pushed to an --ftpurl.