<P>Note that <CODE>openlog</CODE> now takes three arguments, just like <CODE>openlog(3)</CODE>.</P>
<P>
<HR>
<H1><A NAME="examples">EXAMPLES</A></H1>
<PRE>
openlog($program, 'cons,pid', 'user');
syslog('info', 'this is another test');
syslog('mail|warning', 'this is a better test: %d', time);
closelog();</PRE>
<PRE>
syslog('debug', 'this is the last test');</PRE>
<PRE>
setlogsock('unix');
openlog("$program $$", 'ndelay', 'user');
syslog('notice', 'fooprogram: this is really done');</PRE>
<PRE>
setlogsock('inet');
$! = 55;
syslog('info', 'problem was %m'); # %m == $! in syslog(3)</PRE>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><EM>syslog(3)</EM></P>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P>Tom Christiansen <<EM><A HREF="mailto:tchrist@perl.com">tchrist@perl.com</A></EM>> and Larry Wall <<EM><A HREF="mailto:larry@wall.org">larry@wall.org</A></EM>>.
UNIX domain sockets added by Sean Robinson <<EM><A HREF="mailto:robinson_s@sc.maricopa.edu">robinson_s@sc.maricopa.edu</A></EM>>
with support from Tim Bunce <<A HREF="mailto:Tim.Bunce@ig.co.uk">Tim.Bunce@ig.co.uk</A>> and the perl5-porters mailing list.
Dependency on <EM>syslog.ph</EM> replaced with XS code bu Tom Hughes <<EM><A HREF="mailto:tom@compton.nu">tom@compton.nu</A></EM>>.</P>