Added logging via the syslog facility.
1 parent 34a65e9 commit a25b1b7cbaccabb641f87627642428efca701a98
@tundra tundra authored on 30 Apr 2006
Showing 1 changed file
View
10
tperimeter.py
 
# Program Information
 
PROGNAME = "tperimeter.py"
RCSID = "$Id: tperimeter.py,v 1.106 2006/04/30 17:47:20 tundra Exp $"
RCSID = "$Id: tperimeter.py,v 1.107 2006/04/30 19:14:30 tundra Exp $"
 
import os, re, sys
import os, re, sys, syslog
 
#####
# Constants
#####
reqfil = reqdir + os.sep + address
f=open(reqfil, "w")
f.close()
 
# Log the request
 
syslog.openlog("tperimiter")
syslog.syslog(syslog.LOG_NOTICE, "User@%s Requested Service %s For %s" % (requestor, service, address))
syslog.closelog()