Index of /tcl/ftparchive/sorted/net/tcllog-1.0
Name Last modified Size Description
Parent Directory 28-Oct-99 15:46 -
README 02-Dec-97 09:51 2k
tcllog-1.0.tar.gz 02-Dec-97 17:35 23k
Tcllog is a syslog package for tcl. So far it has been tested on the following Platforms
Solaris 2.5
Against the following Tcl Versions
8.0
8.0p1
8.0p2
The Tcllog package provides 3 global arrays and 4 procedures.
The global arrays are initialized from the values found in syslog.h.
log_info
log_info(LOG_KERN)
log_info(LOG_USER)
log_info(LOG_MAIL)
log_info(LOG_DAEMON)
log_info(LOG_AUTH)
log_info(LOG_SYSLOG)
log_info(LOG_LPR)
log_info(LOG_NEWS)
log_info(LOG_UUCP)
log_info(LOG_CRON)
log_info(LOG_LOCAL0)
log_info(LOG_LOCAL1)
log_info(LOG_LOCAL2)
log_info(LOG_LOCAL3)
log_info(LOG_LOCAL4)
log_info(LOG_LOCAL5)
log_info(LOG_LOCAL6)
log_info(LOG_LOCAL7)
log_info(LOG_NFACILITIES)
log_info(LOG_FACMASK)
log_info(LOG_EMERG)
log_info(LOG_ALERT)
log_info(LOG_CRIT)
log_info(LOG_ERR)
log_info(LOG_WARNING)
log_info(LOG_NOTICE)
log_info(LOG_INFO)
log_info(LOG_DEBUG)
log_info(LOG_PRIMASK)
log_info(LOG_PID)
log_info(LOG_CONS)
log_info(LOG_ODELAY)
log_info(LOG_NDELAY)
log_info(LOG_NOWAIT)
log_upto
log_upto(LOG_EMERG)
log_upto(LOG_ALERT)
log_upto(LOG_CRIT)
log_upto(LOG_ERR)
log_upto(LOG_WARNING)
log_upto(LOG_NOTICE)
log_upto(LOG_INFO)
log_upto(LOG_DEBUG)
log_mask
log_mask(LOG_EMERG)
log_mask(LOG_ALERT)
log_mask(LOG_CRIT)
log_mask(LOG_ERR)
log_mask(LOG_WARNING)
log_mask(LOG_NOTICE)
log_mask(LOG_INFO)
log_mask(LOG_DEBUG)
openlog ident logopt facility
# Example
global log_info
openlog $log_info(LOG_NDELAY) $log_info(LOG_LOCAL2)
syslog priority string
# Example
global log_info
syslog $log_info(LOG_DEBUG) {logging at level :: Log_Debug}
closelog
# Example
closelog
setlogmask maskpri
# Example
global log_upto
setlogmask $log_upto(LOG_WARNING)