xref: /original-bsd/usr.bin/logger/logger.1 (revision 28301386)
Copyright (c) 1983 Regents of the University of California.
All rights reserved.

Redistribution and use in source and binary forms are permitted
provided that the above copyright notice and this paragraph are
duplicated in all such forms and that any documentation,
advertising materials, and other materials related to such
distribution and use acknowledge that the software was developed
by the University of California, Berkeley. The name of the
University may not 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

@(#)logger.1 6.3 (Berkeley) 07/09/88

LOGGER 1 ""
C 6
NAME
logger - make entries in the system log
SYNOPSIS
logger [ -t tag ] [ -p pri ] [ -i ] [ -f file ] [ message ... ]
ARGUMENTS

12n -t tag Mark every line in the log with the specified tag .

-p pri Enter 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 info rmational level in the local3 facility. The default is ``user.notice.''

-i Log the process id of the logger process with each line.

-f file Log the specified file.

message The message to log; if not specified, and the -f flag is not provided, standard input is logged.

DESCRIPTION
Logger provides a program interface to the syslog (3) system log module.
EXAMPLES
logger System rebooted

logger -p local0.notice -t HOSTIDM -f /dev/idmc

SEE ALSO
syslog(3), syslogd(8)