]> gitweb.michael.orlitzky.com - dead/htsn.git/blob - doc/man1/htsn.1
Update the man page with new logging plans.
[dead/htsn.git] / doc / man1 / htsn.1
1 .TH htsn 1
2
3 .SH NAME
4 htsn \- Parse XML files from The Sports Network feed.
5
6 .SH SYNOPSIS
7
8 \fBhtsn\fR [\fB-h\fR] [\fB-u\fR USERNAME] [\fB-p\fR PASSWORD] [\fB-f\fR FEED_HOSTS]
9
10 .SH DESCRIPTION
11
12 .P
13 The Sports Network <http://www.sportsnetwork.com> offers an XML feed
14 containing various sports news and statistics.
15
16 .SH INPUT
17
18 .P
19 The program takes no input; a username and password must be supplied
20 on the command-line or in a configuration file.
21
22 .SH OUTPUT
23
24 .P
25 There are three \(dqoutput streams\(dq:
26
27 .nr step 1 1
28 .IP \n[step] 2
29 \fIStandard output/error\fR. If the log level is set to DEBUG, all
30 data received from the feed will be output to standard out in the
31 default color. This is the default.
32
33 Data sent to the remote host (i.e. your username and password) will be
34 highlighted in green at all log levels. Informational (status)
35 messages will be displayed in blue at log levels greater than
36 INFO. Warnings and errors will displayed in red at log levels greater
37 than WARNING and ERROR respectively.
38 .IP \n+[step]
39 \fIXML files\fR. Each XML received from the feed will be inspected for
40 an XML_File_ID element, and then written to a file named
41 accordingly. The name fill be of the form <XML_File_ID>.xml, and it
42 will be written to the \fBoutput_directory\fR described below.
43 .IP \n+[step]
44 \fILogs\fR. Informational messages, warnings, and errors will all be
45 logged by default to syslog (on Unix) or the event log (on Windows).