🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #32677

Re: Diagnostic messages from within a perl filter?

#32677
From: Jim Dutton
Date: Mon, 02 Nov 1998 00:00
18 lines
1593 bytes
In article <7137ad$3nj@news1.panix.com>,
	aidan@panix.com (Aidan Cully) writes:
> I'm just about finished rewriting the News Gizmo as an nnprd perl filter,
> but I don't know how to report syntax errors in the config-file in the
> context of a perl filter.  What's the best way to do this inside of
> nnrpd?  I've heard that perl has a syslog function, but it also seems to
> be a fair bit unreliable (didn't controlchan have trouble with it?), so
> what should I do?

You can always use the SYSLOG -> news.notice functionality:

  $logger = "/usr/bin/logger -i -p news.notice";

and then call "$logger" with your messages (making sure your wrap things
in quotes). This will add a line to news.notice. (you may have to change
the path for your "logger")

Technical Details
Message-ID: <71knrh$gm0$1@saluki-news.it.siu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <7137ad$3nj@news1.panix.com>

Show Full Headers
Complete Article Headers
Message-ID: <71knrh$gm0$1@saluki-news.it.siu.edu>
Subject: Re: Diagnostic messages from within a perl filter?
Date: Mon, 02 Nov 1998 00:00:00 +0000
From: jimd@SPAMYOURSELF.dutton3.it.siu.edu (Jim Dutton)
References: <7137ad$3nj@news1.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 407606804
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: netnews@siu.edu
X-Trace: saluki-news.it.siu.edu 910025393 17088 131.230.6.142 (2 Nov 1998 16:49:53 GMT)
Organization: A poorly-installed InterNetNews site
Mime-Version: 1.0
NNTP-Posting-Date: 2 Nov 1998 16:49:53 GMT
Newsgroups: news.software.nntp