python: Rewrote SSI handler as a reusable module, and in Python3.
[ashd.git] / doc / errlogger.doc
CommitLineData
87244187
FT
1errlogger(1)
2============
3
4NAME
5----
6errlogger - Redirect standard error of a program to the system log
7
8SYNOPSIS
9--------
10*errlogger* [*-h*] [*-n* 'NAME'] [*-f* 'FACILITY'] [*-p* 'PRIORITY'] 'PROGRAM' ['ARGS'...]
11
12DESCRIPTION
13-----------
14
15*errlogger* starts the given 'PROGRAM' with its standard error
16connected to a (write-only) pipe, the other end of which *errlogger*
17will read lines from. Every line so read will be logged to the system
18log.
19
20The utility of *errlogger* is in the ability to log error messages
21from programs connected to no other saved output, such as programs
22started by *ashd*(7) in daemon mode.
23
24*errlogger* will exit as soon as it reads end-of-file on its end of
25the pipe; that is, when the write-end of the pipe is closed, which
26will usually happen when the program exits.
27
28OPTIONS
29-------
30
31*-h*::
32
33 Print a brief help message to standard output and exit.
34
35*-n* 'NAME'::
36
37 Use 'NAME' as the log identification. If not given, 'PROGRAM'
38 will be used by default.
39
40*-f* 'FACILITY'::
41
42 Log to the given log facility, which may be any of *auth*,
43 *authpriv*, *cron*, *daemon*, *ftp*, *kern*, *lpr*, *mail*,
44 *news*, *user*, *uucp* or *local0* through *local7*. By
45 default, *daemon* is used.
46
47*-p* 'PRIORITY'::
48
49 Log at the given log priority, which may be any of *emerg*,
50 *alert*, *crit*, *err*, *warning*, *notice*, *info* or
51 *debug*. By default, *warning* is used.
52
53AUTHOR
54------
55Fredrik Tolf <fredrik@dolda2000.com>
56
57SEE ALSO
58--------
59*syslog*(3), *ashd*(7)