Re: log level

[email protected] (gypsy)
Newsgroups perl.beginners
Message-ID <[email protected]>
"Chas. Owens" wrote:
> On Sat, May 24, 2008 at 2:28 PM, gypsy <[email protected]> wrote:
> > I downloaded a perl script from http://www.tahina.priv.at/~cm/spam/ and
> > it logs its activity.  I wish to have my logs exclude level 'debug'.
> >
> > Things tried:
> > 1) Contact author -> no reply
> > 2) Alter syslog.conf "mail.*" to "mail.info" and restart syslogd -> No
> > Joy
> > 3) Remove "-d" from the startup parameters -> no logging at all
> >
> > Would someone be so kind as to assist me to alter the code I downloaded
> > so that the logging is as desired?  If so, please provide explanation;
> > I'd prefer to be less of a moron...
> snip
> Hmm, you should at least be seeing results for:
> mylog('info', 'starting');
> and
> mylog('info', 'terminating (EOF)');
> when you don't include -d.  I would suggest going through the code and changing
> mylog('debug', whatever)
> to
> mylog('info', whatever)
> for every message you want to receive (and not using -d)
> 
> Chas. Owens

Chas and David,
Thank you.  You're right, the " -d" does work as expected.  I don't know
how I missed the logged entries when I removed it, but I did.  I _did_
say I was a moron.  This proves I wasn't wrong about that.

I added some comment text at the top of the script to remind me that "
-d" turns on debug level logging and that the syslogd setting is
ignored.

FWIW, I have been using this script for a week now and It Just Works.  I
did remark out the dialup test because I felt it to be a waste of time;
dialup attempts will be denied by RBL.
--
gypsy
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.