]> gitweb.michael.orlitzky.com - dead/htsn.git/blob - doc/htsnrc.example
Add scaffolding to allow logging via syslog or a file.
[dead/htsn.git] / doc / htsnrc.example
1 # Example configuration file for htsn. For this to take effect, you
2 # would need to place it in $HOME/.htsnrc. On Windows, it probably
3 # needs to go in %APPDATA%, or C:\Users\<username>\Application Data.
4
5
6 # The username used to connect to the feed.
7 #
8 # Default: none (required)
9 #
10 # username = "whoever"
11
12
13 # The password used to connect to the feed.
14 #
15 # Default: none (required)
16 #
17 # password = "whatever"
18
19
20 # By default, htsn will output the XML files to the current working
21 # directory. Often this is not desirable, and you would rather save
22 # them to a specific location. Specify it here.
23 #
24 # Default: "." (here)
25 #
26 # output-directory = "/var/lib/htsn"
27
28
29 # A list of hostnames that supply the feed.
30 #
31 # Default: ["feed1.sportsnetwork.com",
32 # "feed2.sportsnetwork.com",
33 # "feed3.sportsnetwork.com"]
34 #
35 # feed-hosts = [ "hostname1", "hostname2", ... ]
36
37
38 # Do you want to log to syslog? If so, the log_file option below will
39 # be ignored. This will log to the event log on Windows.
40 #
41 # Default: True
42 #
43 # syslog = False
44
45
46 # If syslog = False, which file should we use for a log? Can be either
47 # a relative or absolute path. It will not be auto-rotated; use
48 # something log logrotate for that.
49 #
50 # Default: htsn.log
51 #
52 # log_file = /var/log/htsn/htsn.log
53
54
55 # How verbose should the logs be? Valid levels are,
56 #
57 # "INFO", "WARNING", "ERROR"
58 #
59 # (there are others, but we don't emit them.)
60 #
61 # Default: "INFO"
62 #
63 # log_level = "WARNING"