#LOGHANDLER.RC # # New File Created 9/13/04 -GE # Last updated 9/26/04 -GE # # Synopsis: # Called by functions/loglevel.rc to handle low level # spambouncer logging. # # Handles writing a message to the SBLOGFILE # # Expecting input values set for: # SBLOGFILE=[INTERNAL|USERDEFINED] # SBLOGLEVEL=[0-9] # SBLOG :0 * SBLOGLEVEL ?? [1-9] { SBLOGPREFIX="`${DATE} '+%b %d %H:%M:%S'` ${HOST} SpamBouncer[$$]:" :0 * SBLOG ?? ^^^^ { SBLOG="${SBLOGPREFIX} Error: Empty Log Message" } :0 E { SBLOG="${SBLOGPREFIX} ${SBLOG}" } :0 * SBLOGFILE ?? ^^^^ { SBLOGFILE=INTERNAL } :0 E * ! SBLOGFILE ?? INTERNAL { INCLUDERC=${SBDIR}/functions/logfile.rc } :0 E { LOG="${SBLOG} " } }