Re: Problem logging from SA when running Amavisd

2007-09-25 Thread Mark Martinec
Jeff, > Thanks for the patch Mark. I'll put it in production tomorrow. For your purpose, you want to run it with option '-d info', e.g.: # amavisd -d info which will give you the 'info'-level debug at amavisd log level 1 or above (set: $log_level=1); With the next version I'll make the '-d in

Re: Problem logging from SA when running Amavisd

2007-09-24 Thread Jeff Moss
> Jeff, > > What I was hoping to do was write stuff to the log file for a week or > > two using the info() method. Then I could grep out my lines, get > > the data analyzed, and then finish the plugin. > > > > I am a fairly experienced programmer but I have not used object oriented > > Perl bef

Re: Problem logging from SA when running Amavisd

2007-09-21 Thread Mark Martinec
Jeff, > What I was hoping to do was write stuff to the log file for a week or > two using the info() method. Then I could grep out my lines, get > the data analyzed, and then finish the plugin. > > I am a fairly experienced programmer but I have not used object oriented > Perl before. Thankfull

Re: Problem logging from SA when running Amavisd

2007-09-21 Thread Jeff Moss
> When SpamAssassin is invoked by amavisd, the SA debug log goes to STDERR. > There is currently no configurable way to let amavisd hook into SA logging > and capture its output, although it is doable and on a TODO list. > For the moment you can redirect STDERR to a file and let it running > for a

Re: Problem logging from SA when running Amavisd

2007-09-20 Thread Mark Martinec
Jeff, > I'm working on a SpamAssassin plugin for a university research project. > I've debugged a lot of it by running SpamAssassin from the command line, > and using the SA logger's dbg() and info() methods to output stuff. > > Now I need to put it in a production server and see the same debug >

Problem logging from SA when running Amavisd

2007-09-20 Thread Jeff Moss
I'm working on a SpamAssassin plugin for a university research project. I've debugged a lot of it by running SpamAssassin from the command line, and using the SA logger's dbg() and info() methods to output stuff. Now I need to put it in a production server and see the same debug information in the