280 lines
6.8 KiB
Groff
280 lines
6.8 KiB
Groff
|
.\" Copyright (c) 1985, 1991, 1993
|
|||
|
.\" The Regents of the University of California. All rights reserved.
|
|||
|
.\"
|
|||
|
.\" Redistribution and use in source and binary forms, with or without
|
|||
|
.\" modification, are permitted provided that the following conditions
|
|||
|
.\" are met:
|
|||
|
.\" 1. Redistributions of source code must retain the above copyright
|
|||
|
.\" notice, this list of conditions and the following disclaimer.
|
|||
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|||
|
.\" notice, this list of conditions and the following disclaimer in the
|
|||
|
.\" documentation and/or other materials provided with the distribution.
|
|||
|
.\" 3. All advertising materials mentioning features or use of this software
|
|||
|
.\" must display the following acknowledgement:
|
|||
|
.\" This product includes software developed by the University of
|
|||
|
.\" California, Berkeley and its contributors.
|
|||
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|||
|
.\" may be used to endorse or promote products derived from this software
|
|||
|
.\" without specific prior written permission.
|
|||
|
.\"
|
|||
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|||
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|||
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|||
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|||
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|||
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|||
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|||
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|||
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|||
|
.\" SUCH DAMAGE.
|
|||
|
.\"
|
|||
|
.\" @(#)syslog.3 8.1 (Berkeley) 6/4/93
|
|||
|
.\"
|
|||
|
.Dd June 4, 1993
|
|||
|
.Dt SYSLOG 3
|
|||
|
.Os BSD 4.2
|
|||
|
.Sh ̾<EFBFBD><EFBFBD>
|
|||
|
.Nm syslog ,
|
|||
|
.Nm vsyslog ,
|
|||
|
.Nm openlog ,
|
|||
|
.Nm closelog ,
|
|||
|
.Nm setlogmask
|
|||
|
.Nd <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Fd #include <syslog.h>
|
|||
|
.Fd #include <varargs.h>
|
|||
|
.Ft void
|
|||
|
.Fn syslog "int priority" "const char *message" "..."
|
|||
|
.Ft void
|
|||
|
.Fn vsyslog "int priority" "const char *message" "va_list args"
|
|||
|
.Ft void
|
|||
|
.Fn openlog "const char *ident" "int logopt" "int facility"
|
|||
|
.Ft void
|
|||
|
.Fn closelog void
|
|||
|
.Ft int
|
|||
|
.Fn setlogmask "int maskpri"
|
|||
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Fn syslog
|
|||
|
<EFBFBD>ؿ<EFBFBD><EFBFBD>ϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƥ<EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD>å<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˥<EFBFBD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BD>
|
|||
|
.Fn vsyslog
|
|||
|
<EFBFBD>ϡ<EFBFBD><EFBFBD>ͤ<EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Pp
|
|||
|
<EFBFBD>롼<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Fn setlogmask
|
|||
|
<EFBFBD>ϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>٥<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Sh <EFBFBD><EFBFBD>
|
|||
|
.Bd -literal -offset indent
|
|||
|
syslog(LOG_ALERT, "who: internal error 23");
|
|||
|
|
|||
|
openlog("ftpd", LOG_PID | LOG_NDELAY, LOG_FTP);
|
|||
|
|
|||
|
setlogmask(LOG_UPTO(LOG_ERR));
|
|||
|
|
|||
|
syslog(LOG_INFO, "Connection from host %d", CallingHost);
|
|||
|
|
|||
|
syslog(LOG_INFO|LOG_LOCAL2, "foobar error: %m");
|
|||
|
.Ed
|
|||
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Xr logger 1 ,
|
|||
|
.Xr syslogd 8
|
|||
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Bx 4.2
|
|||
|
<EFBFBD>˸<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|