3 use warnings::register;
5 use POSIX qw(strftime setlocale LC_TIME);
15 standard => [qw(openlog syslog closelog setlogmask)],
16 extended => [qw(setlogsock)],
18 LOG_ALERT LOG_AUTH LOG_AUTHPRIV LOG_CONS LOG_CRIT LOG_CRON
19 LOG_DAEMON LOG_DEBUG LOG_EMERG LOG_ERR LOG_FACMASK LOG_FTP
20 LOG_INFO LOG_KERN LOG_LFMT LOG_LOCAL0 LOG_LOCAL1 LOG_LOCAL2
21 LOG_LOCAL3 LOG_LOCAL4 LOG_LOCAL5 LOG_LOCAL6 LOG_LOCAL7 LOG_LPR
22 LOG_MAIL LOG_NDELAY LOG_NEWS LOG_NFACILITIES LOG_NOTICE
23 LOG_NOWAIT LOG_ODELAY LOG_PERROR LOG_PID LOG_PRIMASK LOG_SYSLOG
24 LOG_USER LOG_UUCP LOG_WARNING
30 @{$EXPORT_TAGS{standard}},
34 @{$EXPORT_TAGS{extended}},
35 @{$EXPORT_TAGS{macros}},
40 XSLoader::load('Sys::Syslog', $VERSION);
44 push @ISA, 'DynaLoader';
45 bootstrap Sys::Syslog $VERSION;
53 our $host; # host to send syslog messages to
58 my $connected = 0; # flag to indicate if we're connected or not
59 my $syslog_send; # coderef of the function used to send messages
60 my $syslog_path = undef; # syslog path for "stream" and "unix" mechanisms
61 my $transmit_ok = 0; # flag to indicate if the last message was transmited
62 my $current_proto = undef; # current mechanism used to transmit messages
63 my $ident = ''; # identifiant prepended to each message
64 my $facility = ''; # current facility
65 my $maskpri = LOG_UPTO(&LOG_DEBUG); # current log mask
74 # it would be nice to try stream/unix first, since that will be
75 # most efficient. However streams are dodgy - see _syslog_send_stream
76 my @connectMethods = ( 'tcp', 'udp', 'unix', 'stream', 'console' );
77 if ($^O =~ /^(freebsd|linux)$/) {
78 @connectMethods = grep { $_ ne 'udp' } @connectMethods;
80 my @defaultMethods = @connectMethods;
81 my @fallbackMethods = ();
83 # coderef for a nicer handling of errors
84 my $err_sub = $options{nofatal} ? \&warnings::warnif : \&croak;
88 # This AUTOLOAD is used to 'autoload' constants from the constant()
92 ($constname = $AUTOLOAD) =~ s/.*:://;
93 croak "Sys::Syslog::constant() not defined" if $constname eq 'constant';
94 my ($error, $val) = constant($constname);
95 croak $error if $error;
97 *$AUTOLOAD = sub { $val };
103 ($ident, my $logopt, $facility) = @_;
105 for my $opt (split /\b/, $logopt) {
106 $options{$opt} = 1 if exists $options{$opt}
109 $err_sub = $options{nofatal} ? \&warnings::warnif : \&croak;
110 return 1 unless $options{ndelay};
115 $facility = $ident = '';
120 my $oldmask = $maskpri;
121 $maskpri = shift unless $_[0] == 0;
127 $syslog_path = shift;
128 disconnect_log() if $connected;
130 @fallbackMethods = ();
131 @connectMethods = @defaultMethods;
133 if (ref $setsock eq 'ARRAY') {
134 @connectMethods = @$setsock;
136 } elsif (lc $setsock eq 'stream') {
137 unless (defined $syslog_path) {
138 my @try = qw(/dev/log /dev/conslog);
139 if (length &_PATH_LOG) { # Undefined _PATH_LOG is "".
140 unshift @try, &_PATH_LOG;
148 warnings::warnif "stream passed to setlogsock, but could not find any device"
149 unless defined $syslog_path
151 unless (-w $syslog_path) {
152 warnings::warnif "stream passed to setlogsock, but $syslog_path is not writable";
155 @connectMethods = ( 'stream' );
158 } elsif (lc $setsock eq 'unix') {
159 if (length _PATH_LOG() && !defined $syslog_path) {
160 $syslog_path = _PATH_LOG();
161 @connectMethods = ( 'unix' );
163 warnings::warnif 'unix passed to setlogsock, but path not available';
167 } elsif (lc $setsock eq 'native') {
168 @connectMethods = ( 'native' );
170 } elsif (lc $setsock eq 'tcp') {
171 if (getservbyname('syslog', 'tcp') || getservbyname('syslogng', 'tcp')) {
172 @connectMethods = ( 'tcp' );
174 warnings::warnif "tcp passed to setlogsock, but tcp service unavailable";
178 } elsif (lc $setsock eq 'udp') {
179 if (getservbyname('syslog', 'udp')) {
180 @connectMethods = ( 'udp' );
182 warnings::warnif "udp passed to setlogsock, but udp service unavailable";
186 } elsif (lc $setsock eq 'inet') {
187 @connectMethods = ( 'tcp', 'udp' );
189 } elsif (lc $setsock eq 'console') {
190 @connectMethods = ( 'console' );
193 croak "Invalid argument passed to setlogsock; must be 'stream', 'unix', 'native', 'tcp', 'udp' or 'inet'"
200 my $priority = shift;
203 my (@words, $num, $numpri, $numfac, $sum);
205 my $fail_time = undef;
207 my $facility = $facility; # may need to change temporarily.
209 croak "syslog: expecting argument \$priority" unless defined $priority;
210 croak "syslog: expecting argument \$format" unless defined $mask;
212 @words = split(/\W+/, $priority, 2);# Allow "level" or "level|facility".
217 $num = xlate($_); # Translate word to number.
219 croak "syslog: invalid level/facility: $_"
221 elsif ($num <= &LOG_PRIMASK) {
222 croak "syslog: too many levels given: $_" if defined $numpri;
224 return 0 unless LOG_MASK($numpri) & $maskpri;
227 croak "syslog: too many facilities given: $_" if defined $numfac;
233 croak "syslog: level must be given" unless defined $numpri;
235 if (not defined $numfac) { # Facility not specified in this call.
236 $facility = 'user' unless $facility;
237 $numfac = xlate($facility);
240 connect_log() unless $connected;
244 # escape percent signs if sprintf will be called
245 $err =~ s/%/%%/g if @_;
246 # replace %m with $err, if preceded by an even number of percent signs
247 $mask =~ s/(?<!%)((?:%%)*)%m/$1$err/g;
250 $mask .= "\n" unless $mask =~ /\n$/;
251 $message = @_ ? sprintf($mask, @_) : $mask;
253 if($current_proto eq 'native') {
259 if (!$whoami && $mask =~ /^(\S.*?):\s?(.*)/) {
265 $whoami = getlogin() || getpwuid($<) || 'syslog';
268 $whoami .= "[$$]" if $options{pid};
270 $sum = $numpri + $numfac;
271 my $oldlocale = setlocale(LC_TIME);
272 setlocale(LC_TIME, 'C');
273 my $timestamp = strftime "%b %e %T", localtime;
274 setlocale(LC_TIME, $oldlocale);
275 $buf = "<$sum>$timestamp $whoami: $message\0";
278 # it's possible that we'll get an error from sending
279 # (e.g. if method is UDP and there is no UDP listener,
280 # then we'll get ECONNREFUSED on the send). So what we
281 # want to do at this point is to fallback onto a different
283 while (scalar @fallbackMethods || $syslog_send) {
284 if ($failed && (time - $fail_time) > 60) {
285 # it's been a while... maybe things have been fixed
286 @fallbackMethods = ();
288 $transmit_ok = 0; # make it look like a fresh attempt
292 if ($connected && !connection_ok()) {
293 # Something was OK, but has now broken. Remember coz we'll
294 # want to go back to what used to be OK.
295 $failed = $current_proto unless $failed;
300 connect_log() unless $connected;
301 $failed = undef if ($current_proto && $failed && $current_proto eq $failed);
304 if ($syslog_send->($buf, $numpri)) {
308 # typically doesn't happen, since errors are rare from write().
312 # could not send, could not fallback onto a working
313 # connection method. Lose.
317 sub _syslog_send_console {
319 chop($buf); # delete the NUL from the end
320 # The console print is a method which could block
321 # so we do it in a child process and always return success
323 if (my $pid = fork) {
325 if ($options{nowait}) {
328 if (waitpid($pid, 0) >= 0) {
331 # it's possible that the caller has other
332 # plans for SIGCHLD, so let's not interfere
337 if (open(CONS, ">/dev/console")) {
338 my $ret = print CONS $buf . "\r"; # XXX: should this be \x0A ?
339 exit $ret if defined $pid;
342 exit if defined $pid;
346 sub _syslog_send_stream {
348 # XXX: this only works if the OS stream implementation makes a write
349 # look like a putmsg() with simple header. For instance it works on
350 # Solaris 8 but not Solaris 7.
351 # To be correct, it should use a STREAMS API, but perl doesn't have one.
352 return syswrite(SYSLOG, $buf, length($buf));
355 sub _syslog_send_socket {
357 return syswrite(SYSLOG, $buf, length($buf));
358 #return send(SYSLOG, $buf, 0);
361 sub _syslog_send_native {
362 my ($buf, $numpri) = @_;
363 eval { syslog_xs($numpri, $buf) };
370 # private function to translate names to numeric values
374 return $name+0 if $name =~ /^\s*\d+\s*$/;
376 $name = "LOG_$name" unless $name =~ /^LOG_/;
377 $name = "Sys::Syslog::$name";
378 # Can't have just eval { &$name } || -1 because some LOG_XXX may be zero.
379 my $value = eval { no strict 'refs'; &$name };
380 defined $value ? $value : -1;
386 # This function acts as a kind of front-end: it tries to connect to
387 # a syslog service using the selected methods, trying each one in the
391 @fallbackMethods = @connectMethods unless scalar @fallbackMethods;
392 if ($transmit_ok && $current_proto) {
393 # Retry what we were on, because it has worked in the past.
394 unshift(@fallbackMethods, $current_proto);
399 while ($proto = shift @fallbackMethods) {
401 my $fn = "connect_$proto";
402 $connected = &$fn(\@errs) if defined &$fn;
408 $current_proto = $proto;
409 my($old) = select(SYSLOG); $| = 1; select($old);
411 @fallbackMethods = ();
412 $err_sub->(join "\n\t- ", "no connection to syslog available", @errs);
419 my $tcp = getprotobyname('tcp');
421 push @$errs, "getprotobyname failed for tcp";
424 my $syslog = getservbyname('syslog','tcp');
425 $syslog = getservbyname('syslogng','tcp') unless defined $syslog;
426 if (!defined $syslog) {
427 push @$errs, "getservbyname failed for syslog/tcp and syslogng/tcp";
431 my $this = sockaddr_in($syslog, INADDR_ANY);
434 $that = inet_aton($host);
436 push @$errs, "can't lookup $host";
440 $that = INADDR_LOOPBACK;
442 $that = sockaddr_in($syslog, $that);
444 if (!socket(SYSLOG, AF_INET, SOCK_STREAM, $tcp)) {
445 push @$errs, "tcp socket: $!";
448 setsockopt(SYSLOG, SOL_SOCKET, SO_KEEPALIVE, 1);
449 setsockopt(SYSLOG, &IPPROTO_TCP, &TCP_NODELAY, 1);
450 if (!connect(SYSLOG, $that)) {
451 push @$errs, "tcp connect: $!";
454 $syslog_send = \&_syslog_send_socket;
460 my $udp = getprotobyname('udp');
462 push @$errs, "getprotobyname failed for udp";
465 my $syslog = getservbyname('syslog','udp');
466 if (!defined $syslog) {
467 push @$errs, "getservbyname failed for syslog/udp";
470 my $this = sockaddr_in($syslog, INADDR_ANY);
473 $that = inet_aton($host);
475 push @$errs, "can't lookup $host";
479 $that = INADDR_LOOPBACK;
481 $that = sockaddr_in($syslog, $that);
483 if (!socket(SYSLOG, AF_INET, SOCK_DGRAM, $udp)) {
484 push @$errs, "udp socket: $!";
487 if (!connect(SYSLOG, $that)) {
488 push @$errs, "udp connect: $!";
491 # We want to check that the UDP connect worked. However the only
492 # way to do that is to send a message and see if an ICMP is returned
493 _syslog_send_socket("");
494 if (!connection_ok()) {
495 push @$errs, "udp connect: nobody listening";
498 $syslog_send = \&_syslog_send_socket;
504 # might want syslog_path to be variable based on syslog.h (if only
506 $syslog_path = '/dev/conslog';
507 if (!-w $syslog_path) {
508 push @$errs, "stream $syslog_path is not writable";
511 if (!open(SYSLOG, ">" . $syslog_path)) {
512 push @$errs, "stream can't open $syslog_path: $!";
515 $syslog_send = \&_syslog_send_stream;
521 if (length _PATH_LOG()) {
522 $syslog_path = _PATH_LOG();
524 push @$errs, "_PATH_LOG not available in syslog.h";
527 if (! -S $syslog_path) {
528 push @$errs, "$syslog_path is not a socket";
531 my $that = sockaddr_un($syslog_path);
533 push @$errs, "can't locate $syslog_path";
536 if (!socket(SYSLOG,AF_UNIX,SOCK_STREAM,0)) {
537 push @$errs, "unix stream socket: $!";
540 if (!connect(SYSLOG,$that)) {
541 if (!socket(SYSLOG,AF_UNIX,SOCK_DGRAM,0)) {
542 push @$errs, "unix dgram socket: $!";
545 if (!connect(SYSLOG,$that)) {
546 push @$errs, "unix dgram connect: $!";
550 $syslog_send = \&_syslog_send_socket;
558 # reconstruct the numeric equivalent of the options
559 for my $opt (keys %options) {
560 $logopt += xlate($opt) if $options{$opt}
563 eval { openlog_xs($ident, $logopt, xlate($facility)) };
569 $syslog_send = \&_syslog_send_native;
574 sub connect_console {
576 if (!-w '/dev/console') {
577 push @$errs, "console is not writable";
580 $syslog_send = \&_syslog_send_console;
584 # to test if the connection is still good, we need to check if any
585 # errors are present on the connection. The errors will not be raised
586 # by a write. Instead, sockets are made readable and the next read
587 # would cause the error to be returned. Unfortunately the syslog
588 # 'protocol' never provides anything for us to read. But with
589 # judicious use of select(), we can see if it would be readable...
591 return 1 if defined $current_proto and (
592 $current_proto eq 'native' or $current_proto eq 'console'
595 vec($rin, fileno(SYSLOG), 1) = 1;
596 my $ret = select $rin, undef, $rin, 0;
597 return ($ret ? 0 : 1);
602 $syslog_send = undef;
604 if($current_proto eq 'native') {
618 Sys::Syslog - Perl interface to the UNIX syslog(3) calls
626 use Sys::Syslog; # all except setlogsock(), or:
627 use Sys::Syslog qw(:DEFAULT setlogsock); # default set, plus setlogsock()
628 use Sys::Syslog qw(:standard :macros); # standard functions, plus macros
630 setlogsock $sock_type;
631 openlog $ident, $logopt, $facility; # don't forget this
632 syslog $priority, $format, @args;
633 $oldmask = setlogmask $mask_priority;
639 C<Sys::Syslog> is an interface to the UNIX C<syslog(3)> program.
640 Call C<syslog()> with a string priority and a list of C<printf()> args
641 just like C<syslog(3)>.
646 C<Sys::Syslog> exports the following C<Exporter> tags:
652 C<:standard> exports the standard C<syslog(3)> functions:
654 openlog closelog setlogmask syslog
658 C<:extended> exports the Perl specific functions for C<syslog(3)>:
664 C<:macros> exports the symbols corresponding to most of your C<syslog(3)>
665 macros and the C<LOG_UPTO()> and C<LOG_MASK()> functions.
666 See L<"CONSTANTS"> for the supported constants and their meaning.
670 By default, C<Sys::Syslog> exports the symbols from the C<:standard> tag.
677 =item B<openlog($ident, $logopt, $facility)>
680 C<$ident> is prepended to every message. C<$logopt> contains zero or
681 more of the options detailed below. C<$facility> specifies the part
682 of the system to report about, for example C<LOG_USER> or C<LOG_LOCAL0>:
683 see L<"Facilities"> for a list of well-known facilities, and your
684 C<syslog(3)> documentation for the facilities available in your system.
685 Check L<"SEE ALSO"> for useful links. Facility can be given as a string
688 This function will croak if it can't connect to the syslog daemon.
690 Note that C<openlog()> now takes three arguments, just like C<openlog(3)>.
692 B<You should use C<openlog()> before calling C<syslog()>.>
700 C<cons> - This option is ignored, since the failover mechanism will drop
701 down to the console automatically if all other media fail.
705 C<ndelay> - Open the connection immediately (normally, the connection is
706 opened when the first message is logged).
710 C<nofatal> - When set to true, C<openlog()> and C<syslog()> will only
711 emit warnings instead of dying if the connection to the syslog can't
716 C<nowait> - Don't wait for child processes that may have been created
717 while logging the message. (The GNU C library does not create a child
718 process, so this option has no effect on Linux.)
722 C<pid> - Include PID with each message.
728 Open the syslog with options C<ndelay> and C<pid>, and with facility C<LOCAL0>:
730 openlog($name, "ndelay,pid", "local0");
732 Same thing, but this time using the macro corresponding to C<LOCAL0>:
734 openlog($name, "ndelay,pid", LOG_LOCAL0);
737 =item B<syslog($priority, $message)>
739 =item B<syslog($priority, $format, @args)>
741 If C<$priority> permits, logs C<$message> or C<sprintf($format, @args)>
742 with the addition that C<%m> in $message or C<$format> is replaced with
743 C<"$!"> (the latest error message).
745 C<$priority> can specify a level, or a level and a facility. Levels and
746 facilities can be given as strings or as macros.
748 If you didn't use C<openlog()> before using C<syslog()>, C<syslog()> will
749 try to guess the C<$ident> by extracting the shortest prefix of
750 C<$format> that ends in a C<":">.
754 syslog("info", $message); # informational level
755 syslog(LOG_INFO, $message); # informational level
757 syslog("info|local0", $message); # information level, Local0 facility
758 syslog(LOG_INFO|LOG_LOCAL0, $message); # information level, Local0 facility
764 C<Sys::Syslog> version v0.07 and older passed the C<$message> as the
765 formatting string to C<sprintf()> even when no formatting arguments
766 were provided. If the code calling C<syslog()> might execute with
767 older versions of this module, make sure to call the function as
768 C<syslog($priority, "%s", $message)> instead of C<syslog($priority,
769 $message)>. This protects against hostile formatting sequences that
770 might show up if $message contains tainted data.
775 =item B<setlogmask($mask_priority)>
777 Sets the log mask for the current process to C<$mask_priority> and
778 returns the old mask. If the mask argument is 0, the current log mask
779 is not modified. See L<"Levels"> for the list of available levels.
780 You can use the C<LOG_UPTO()> function to allow all levels up to a
781 given priority (but it only accept the numeric macros as arguments).
787 setlogmask( LOG_MASK(LOG_ERR) );
789 Log everything except informational messages:
791 setlogmask( ~(LOG_MASK(LOG_INFO)) );
793 Log critical messages, errors and warnings:
795 setlogmask( LOG_MASK(LOG_CRIT) | LOG_MASK(LOG_ERR) | LOG_MASK(LOG_WARNING) );
797 Log all messages up to debug:
799 setlogmask( LOG_UPTO(LOG_DEBUG) );
802 =item B<setlogsock($sock_type)>
804 =item B<setlogsock($sock_type, $stream_location)> (added in 5.004_02)
806 Sets the socket type to be used for the next call to
807 C<openlog()> or C<syslog()> and returns true on success,
810 A value of C<"unix"> will connect to the UNIX domain socket (in some
811 systems a character special device) returned by the C<_PATH_LOG> macro
812 (if your system defines it), or F</dev/log> or F</dev/conslog>,
813 whatever is writable. A value of 'stream' will connect to the stream
814 indicated by the pathname provided as the optional second parameter.
815 (For example Solaris and IRIX require C<"stream"> instead of C<"unix">.)
816 A value of C<"inet"> will connect to an INET socket (either C<tcp> or C<udp>,
817 tried in that order) returned by C<getservbyname()>. C<"tcp"> and C<"udp">
818 can also be given as values. The value C<"console"> will send messages
819 directly to the console, as for the C<"cons"> option in the logopts in
822 A reference to an array can also be passed as the first parameter.
823 When this calling method is used, the array should contain a list of
824 sock_types which are attempted in order.
826 The default is to try C<tcp>, C<udp>, C<unix>, C<stream>, C<console>.
828 Giving an invalid value for C<$sock_type> will croak.
833 Closes the log file and return true on success.
840 openlog($program, 'cons,pid', 'user');
841 syslog('info', '%s', 'this is another test');
842 syslog('mail|warning', 'this is a better test: %d', time);
845 syslog('debug', 'this is the last test');
848 openlog("$program $$", 'ndelay', 'user');
849 syslog('notice', 'fooprogram: this is really done');
853 syslog('info', 'problem was %m'); # %m == $! in syslog(3)
855 Log to UDP port on C<$remotehost> instead of logging locally:
858 $Sys::Syslog::host = $remotehost;
859 openlog($program, 'ndelay', 'user');
860 syslog('info', 'something happened over here');
871 C<LOG_AUTH> - security/authorization messages
875 C<LOG_AUTHPRIV> - security/authorization messages (private)
879 C<LOG_CRON> - clock daemon (B<cron> and B<at>)
883 C<LOG_DAEMON> - system daemons without separate facility value
887 C<LOG_FTP> - ftp daemon
891 C<LOG_KERN> - kernel messages
895 C<LOG_LOCAL0> through C<LOG_LOCAL7> - reserved for local use
899 C<LOG_LPR> - line printer subsystem
903 C<LOG_MAIL> - mail subsystem
907 C<LOG_NEWS> - USENET news subsystem
911 C<LOG_SYSLOG> - messages generated internally by B<syslogd>
915 C<LOG_USER> (default) - generic user-level messages
919 C<LOG_UUCP> - UUCP subsystem
930 C<LOG_EMERG> - system is unusable
934 C<LOG_ALERT> - action must be taken immediately
938 C<LOG_CRIT> - critical conditions
942 C<LOG_ERR> - error conditions
946 C<LOG_WARNING> - warning conditions
950 C<LOG_NOTICE> - normal, but significant, condition
954 C<LOG_INFO> - informational message
958 C<LOG_DEBUG> - debug-level message
967 =item Invalid argument passed to setlogsock
969 B<(F)> You gave C<setlogsock()> an invalid value for C<$sock_type>.
971 =item no connection to syslog available
973 B<(F)> C<syslog()> failed to connect to the specified socket.
975 =item stream passed to setlogsock, but %s is not writable
977 B<(W)> You asked C<setlogsock()> to use a stream socket, but the given
978 path is not writable.
980 =item stream passed to setlogsock, but could not find any device
982 B<(W)> You asked C<setlogsock()> to use a stream socket, but didn't
983 provide a path, and C<Sys::Syslog> was unable to find an appropriate one.
985 =item tcp passed to setlogsock, but tcp service unavailable
987 B<(W)> You asked C<setlogsock()> to use a TCP socket, but the service
988 is not available on the system.
990 =item syslog: expecting argument %s
992 B<(F)> You forgot to give C<syslog()> the indicated argument.
994 =item syslog: invalid level/facility: %s
996 B<(F)> You specified an invalid level or facility.
998 =item syslog: too many levels given: %s
1000 B<(F)> You specified too many levels.
1002 =item syslog: too many facilities given: %s
1004 B<(F)> You specified too many facilities.
1006 =item syslog: level must be given
1008 B<(F)> You forgot to specify a level.
1010 =item udp passed to setlogsock, but udp service unavailable
1012 B<(W)> You asked C<setlogsock()> to use a UDP socket, but the service
1013 is not available on the system.
1015 =item unix passed to setlogsock, but path not available
1017 B<(W)> You asked C<setlogsock()> to use a UNIX socket, but C<Sys::Syslog>
1018 was unable to find an appropriate an appropriate device.
1027 SUSv3 issue 6, IEEE Std 1003.1, 2004 edition,
1028 L<http://www.opengroup.org/onlinepubs/000095399/basedefs/syslog.h.html>
1030 GNU C Library documentation on syslog,
1031 L<http://www.gnu.org/software/libc/manual/html_node/Syslog.html>
1033 Solaris 10 documentation on syslog,
1034 L<http://docs.sun.com/app/docs/doc/816-5168/6mbb3hruo?a=view>
1036 AIX 5L 5.3 documentation on syslog,
1037 L<http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.doc/libs/basetrf2/syslog.htm>
1039 HP-UX 11i documentation on syslog,
1040 L<http://docs.hp.com/en/B9106-90010/syslog.3C.html>
1042 Tru64 5.1 documentation on syslog,
1043 L<http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/MAN/MAN3/0193____.HTM>
1046 L<http://stratadoc.stratus.com/vos/15.1.1/r502-01/wwhelp/wwhimpl/js/html/wwhelp.htm?context=r502-01&file=ch5r502-01bi.html>
1048 I<RFC 3164 - The BSD syslog Protocol>, L<http://www.faqs.org/rfcs/rfc3164.html>
1049 -- Please note that this is an informational RFC, and therefore does not
1050 specify a standard of any kind.
1052 I<RFC 3195 - Reliable Delivery for syslog>, L<http://www.faqs.org/rfcs/rfc3195.html>
1054 I<Syslogging with Perl>, L<http://lexington.pm.org/meetings/022001.html>
1059 Tom Christiansen E<lt>F<tchrist@perl.com>E<gt> and Larry Wall
1060 E<lt>F<larry@wall.org>E<gt>.
1062 UNIX domain sockets added by Sean Robinson
1063 E<lt>F<robinson_s@sc.maricopa.edu>E<gt> with support from Tim Bunce
1064 E<lt>F<Tim.Bunce@ig.co.uk>E<gt> and the C<perl5-porters> mailing list.
1066 Dependency on F<syslog.ph> replaced with XS code by Tom Hughes
1067 E<lt>F<tom@compton.nu>E<gt>.
1069 Code for C<constant()>s regenerated by Nicholas Clark E<lt>F<nick@ccl4.org>E<gt>.
1071 Failover to different communication modes by Nick Williams
1072 E<lt>F<Nick.Williams@morganstanley.com>E<gt>.
1074 XS code for using native C functions borrowed from C<L<Unix::Syslog>>,
1075 written by Marcus Harnisch E<lt>F<marcus.harnisch@gmx.net>E<gt>.
1077 Extracted from core distribution for publishing on the CPAN by
1078 SE<eacute>bastien Aperghis-Tramoni E<lt>sebastien@aperghis.netE<gt>.
1083 Please report any bugs or feature requests to
1084 C<bug-sys-syslog at rt.cpan.org>, or through the web interface at
1085 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Sys-Syslog>.
1086 I will be notified, and then you'll automatically be notified of progress on
1087 your bug as I make changes.
1092 You can find documentation for this module with the perldoc command.
1096 You can also look for information at:
1100 =item * AnnoCPAN: Annotated CPAN documentation
1102 L<http://annocpan.org/dist/Sys-Syslog>
1104 =item * CPAN Ratings
1106 L<http://cpanratings.perl.org/d/Sys-Syslog>
1108 =item * RT: CPAN's request tracker
1110 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Sys-Syslog>
1114 L<http://search.cpan.org/dist/Sys-Syslog/>
1116 =item * Kobes' CPAN Search
1118 L<http://cpan.uwinnipeg.ca/dist/Sys-Syslog>
1120 =item * Perl Documentation
1122 L<http://perldoc.perl.org/Sys/Syslog.html>
1129 This program is free software; you can redistribute it and/or modify it
1130 under the same terms as Perl itself.