2 <TITLE>TclSyslog</TITLE>
3 <META NAME="description" CONTENT="Tcl extension to interface Unix syslog
8 I was highly surprised that <A HREF="http://tclx.sf.net/">TclX</A> package, which provides a lot of Unix-specific functionality
9 for Tcl doesn't provide interface to syslog.
11 So, I've designed my own package.
13 I've not touched this package since 2000. It just works.
16 <h2>Documentation</h2>
19 package require syslog
20 syslog ?options? priority mesage
22 Syslog command logs message to system syslog facility. By default,
23 it uses syslog facility user and content of Tcl variable <B>argv0</B> as
24 identifier. It can be overriden by options of syslog command. Options
28 <DD> sets syslog facility to use. All values, defined in BSDI man page
29 syslog(3) are defined. On Solaris facility <b>authpriv</b> is same as
32 <DD> sets id string to use.
34 <DD> set options to use in <B>openlog</B>(3) call. Options can be
35 specified as numeric constant or (2.1 only) as list of symbolic names.
37 If any of these options is used, syslog command closes and reopens log.
38 But openlog call is issued only on first call to syslog, so no overhead is
39 expected, when you are specifying desired facility and ident upon first
42 It is also possible to call syslog just with options, without priority and
44 Facilities and priorities are spelled in lowercase letter same (hopefully)
45 way as in <CODE>/etc/syslog.conf</CODE> or <B>logger</B>(1) command line.
47 There are two version of this extension maintained - 1.x and 2.x. 1.x is
48 for old Tcl, which is not Unicode inside. They don't use stubs interface
49 and use string-based commmands.
51 2.x is Unicode-aware. It means that it is objectified, and it converts
52 messages and ident strings from Unicode to current system encoding
53 before sending them to library functions.
55 <A HREF="http://ftp.wagner.pp.ru/pub/tcl/tclsyslog/tclsyslog-1.1.tar.gz">Version 1.1</A> For tcl 7.x and 8.0.x<BR>
56 <A HREF="http://ftp.wagner.pp.ru/pub/tcl/tclsyslog/tclsyslog-2.1.tar.gz">Version 2.1</A> For tcl 8.1 and above -
57 stubs-enabled and Unicode aware.
59 HREF="http://ftp.wagner.pp.ru/pub/tcl/tclsyslog/tclsyslog-2.0.tar.gz">Version
60 2.0</A> For tcl 8.1 and above -
61 stubs-enabled and Unicode aware.
63 TclSyslog can also be obtained from my GIT repository via http protocol.
66 git clone http://www.wagner.pp.ru/git/oss/tclsyslog.git
69 href="http://www.wagner.pp.ru/gitweb?p=oss/tclsyslog;a=summary">GitWeb
73 <H2>Bug tracking system</H2>
76 HREF="https://www.wagner.pp.ru/cgi-bin/cvstrac/tclsyslog/">bug tracking
77 system</a> allowed only via https.
78 See <a href="http://www.wagner.pp.ru/cvstrac.html">my cvstrac page</a>
79 for instructions and <a
80 href="http://www.wagner.pp.ru/45.free.net.crt">certificate</a>.