.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Razor2::Syslog 3" .TH Razor2::Syslog 3 2023-07-25 "perl v5.38.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Razor2::Syslog \-\- Syslog support for Razor2 .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 3 \& use Razor2::Syslog; \& my $s=new Razor2::Syslog(Facility=>\*(Aqlocal4\*(Aq,Priority=>\*(Aqdebug\*(Aq); \& $s\->send(\*(Aqsee this in syslog\*(Aq,Priority=>\*(Aqinfo\*(Aq); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" This module has been derived from Net::Syslog. Some optimizations were made to Net::Syslog, in particular support for keeping a socket open. What follows is the documentation for Net::Syslog, which completely applies to this module. .PP Net::Syslog implements the intra-host syslog forwarding protocol. It is not intended to replace the Sys::Syslog or Unix::Syslog modules, but instead to provide a method of using syslog when a local syslogd is unavailable or when you don't want to write syslog messages to the local syslog. .PP The new call sets up default values, any of which can be overridden in the send call. Keys (listed with default values) are: .PP .Vb 5 \& Name \& Facility local5 \& Priority err \& SyslogPort 514 \& SyslogHost 127.0.0.1 .Ve .PP Valid Facilities are: kern, user, mail, daemon, auth, syslog, lpr, news, uucp, cron, authpriv, ftp, local0, local1, local2, local3, local4, local5, local6 .PP Valid Priorities are: emerg, alert, crit, err, warning, notice, info, debug .SH AUTHOR .IX Header "AUTHOR" .Vb 2 \& Les Howard, les@lesandchris.com \& Vipul Ved Prakash, mail@vipul.net .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBsyslog\fR\|(3), \fBSys::Syslog\fR\|(3), \fBsyslogd\fR\|(8), \fBUnix::Syslog\fR\|(3), IO::Socket, \fBperl\fR\|(1)