logger.1

来自「早期freebsd实现」· 1 代码 · 共 95 行

1
95 行
字号
.\" $Revision: 1.3 $.\"  Modified by Rich $alz <rsalz@osf.org> to be more portable to older.\"  systems..\" Copyright (c) 1983, 1990 The Regents of the University of California..\" All rights reserved..\".\" Redistribution and use in source and binary forms are permitted provided.\" that: (1) source distributions retain this entire copyright notice and.\" comment, and (2) distributions including binaries display the following.\" acknowledgement:  ``This product includes software developed by the.\" University of California, Berkeley and its contributors'' in the.\" documentation or other materials provided with the distribution and in.\" all advertising materials mentioning features or use of this software..\" 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 ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE..\".\"     @(#)logger.1	6.6 (Berkeley) 7/24/90.\".TH LOGGER 1 "July 24, 1990".SH NAMElogger \- make entries in the system log.SH SYNOPSIS.B logger[.B \-i][.B \-s][.BI \-f file][.BI \-p pri][.BI \-t tag].I message....SH DESCRIPTION.I Loggerprovides a shell command interface to the.IR syslog (3)system log module..PPOptions:.TP.B \-iLog the process id of the logger process with each line..TP.B \-sLog the message to standard error, as well as the system log..TP.BI \-f fileLog the specified file..TP.BI \-p priEnter the message with the specified priority.The priority may be specified numerically or as a ``facility.level'' pair.For example, ``\-p local3.info'' logs the message(s) as.IR info rmationallevel in the.I local3facility.The default is ``user.notice.''.TP.BI \-t tagMark every line in the log with the specified.IR tag  ..TP.I messageWrite the message to log; if not specified, and the ``\-f'' flag is notprovided, standard input is logged..PPThe.I loggerutility exits 0 on success, and >0 if an error occurs..SH EXAMPLES.RS.nflogger System rebootedlogger \-p local0.notice \-t HOSTIDM \-f /dev/idmc.fi.DE.SH "SEE ALSO".syslog(3),syslogd(8).SH STANDARDSThe logger function is expected to be POSIX 1003.2 compatible.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?