Re: log level

[email protected] ("Chas. Owens")
Newsgroups perl.beginners
Message-ID <[email protected]>
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.
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.