Re: log level
[email protected] (David Moreno)
| Newsgroups | perl.beginners |
|---|---|
| Message-ID | <1211695091.3725.3.camel@puerca> |
Yeah. D. On Sun, 2008-05-25 at 00:36 -0400, 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 > wonkden.net > The most important skill a programmer can have is the ability to read. >