logger.1 (140368) | logger.1 (160917) |
---|---|
1.\" Copyright (c) 1983, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)logger.1 8.1 (Berkeley) 6/6/93 | 1.\" Copyright (c) 1983, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)logger.1 8.1 (Berkeley) 6/6/93 |
33.\" $FreeBSD: head/usr.bin/logger/logger.1 140368 2005-01-17 07:44:44Z ru $ | 33.\" $FreeBSD: head/usr.bin/logger/logger.1 160917 2006-08-02 13:21:44Z bms $ |
34.\" 35.Dd June 6, 1993 36.Dt LOGGER 1 37.Os 38.Sh NAME 39.Nm logger 40.Nd make entries in the system log 41.Sh SYNOPSIS 42.Nm 43.Op Fl 46Ais 44.Op Fl f Ar file 45.Op Fl h Ar host | 34.\" 35.Dd June 6, 1993 36.Dt LOGGER 1 37.Os 38.Sh NAME 39.Nm logger 40.Nd make entries in the system log 41.Sh SYNOPSIS 42.Nm 43.Op Fl 46Ais 44.Op Fl f Ar file 45.Op Fl h Ar host |
46.Op Fl P Ar port |
|
46.Op Fl p Ar pri 47.Op Fl t Ar tag 48.Op Ar message ... 49.Sh DESCRIPTION 50The 51.Nm 52utility provides a shell command interface to the 53.Xr syslog 3 --- 23 unchanged lines hidden (view full) --- 77.It Fl s 78Log the message to standard error, as well as the system log. 79.It Fl f Ar file 80Log the specified file. 81.It Fl h Ar host 82Send the message to the remote system 83.Ar host 84instead of logging it locally. | 47.Op Fl p Ar pri 48.Op Fl t Ar tag 49.Op Ar message ... 50.Sh DESCRIPTION 51The 52.Nm 53utility provides a shell command interface to the 54.Xr syslog 3 --- 23 unchanged lines hidden (view full) --- 78.It Fl s 79Log the message to standard error, as well as the system log. 80.It Fl f Ar file 81Log the specified file. 82.It Fl h Ar host 83Send the message to the remote system 84.Ar host 85instead of logging it locally. |
86.It Fl P Ar port 87Send the message to the specified 88.Ar port 89number on a remote system, 90which can be specified as a service name 91or as a decimal number. 92The default is ``syslog''. 93If an unknown service name is used, 94.Nm 95prints a warning and falls back to port 514. |
|
85.It Fl p Ar pri 86Enter the message with the specified priority. 87The priority may be specified numerically or as a ``facility.level'' 88pair. 89For example, ``\-p local3.info'' logs the message(s) as 90.Ar info Ns rmational 91level in the 92.Ar local3 --- 28 unchanged lines hidden --- | 96.It Fl p Ar pri 97Enter the message with the specified priority. 98The priority may be specified numerically or as a ``facility.level'' 99pair. 100For example, ``\-p local3.info'' logs the message(s) as 101.Ar info Ns rmational 102level in the 103.Ar local3 --- 28 unchanged lines hidden --- |