revise #Logs entry. fix several broken anchors to this faq entry.
Roger Dingledine

Roger Dingledine commited on 2011-02-07 10:19:10
Zeige 3 geänderte Dateien mit 30 Einfügungen und 56 Löschungen.

... ...
@@ -48,7 +48,7 @@
48 48
     <ul>
49 49
     <li><a href="#torrc">I'm supposed to "edit my torrc". What does
50 50
     that mean?</a></li>
51
-    <li><a href="#logs">How do I set up logging, or see Tor's
51
+    <li><a href="#Logs">How do I set up logging, or see Tor's
52 52
     logs?</a></li>
53 53
     </ul>
54 54
 
... ...
@@ -816,63 +816,49 @@ configuration.
816 816
 
817 817
 <hr>
818 818
 
819
-<a id="logs"></a>
820
-<h3><a class="anchor" href="#logs">How do I set up logging, or see
819
+<a id="Logs"></a>
820
+<h3><a class="anchor" href="#Logs">How do I set up logging, or see
821 821
 Tor's logs?</a></h3>
822 822
 
823 823
 <p>
824
-If you installed a Tor bundle with Vidalia, then Vidalia has a window
825
-called "Message Log" that will show you Tor's log messages. You can
826
-click on "Settings" to see more details, or to save the messages to a
827
-file also. You're all set.
824
+If you installed a Tor bundle that includes Vidalia, then Vidalia has a
825
+window called "Message Log" that will show you Tor's log messages. You
826
+can click on "Settings" to see more details, or to save the messages to
827
+a file. You're all set.
828 828
 </p>
829 829
 
830 830
 <p>
831 831
 If you're not using Vidalia, you'll have to go find the log files by
832
-hand as described below.
833
-</p>
834
-
835
-<p>
836
-By default, Tor logs to "standard out" (also knows as "stdout") at
837
-log-level notice. However, some Tor packages (notably the ones for OS X,
838
-Debian, Red Hat, etc) change the default logging so it logs to a file,
839
-and then Tor runs in the background.
840
-</p>
841
-
842
-<p>
843
-If you're using a pre-packaged Tor, here are some likely places for your
844
-logs to go by default:
832
+hand. Here are some likely places for your logs to be:
845 833
 </p>
846 834
 
847 835
 <ul>
848
-<li>On Windows, there are no default log files currently. If you
849
-configure logging to a file in your torrc, they will show up in
850
-<code>\username\Application Data\tor\log\</code> or <code>\Application
851
-Data\tor\log\</code>
852
-</li>
853 836
 <li>On OS X, Debian, Red Hat, etc, the logs are in /var/log/tor/
854 837
 </li>
855
-<li>If you compiled Tor from source, your logs will go to
856
-<code>/usr/local/var/log/tor/</code>, but only if you enable them in
857
-the torrc file.
838
+<li>On Windows, there are no default log files currently. If you enable
839
+logs in your torrc file, they default to <code>\username\Application
840
+Data\tor\log\</code> or <code>\Application Data\tor\log\</code>
841
+</li>
842
+<li>If you compiled Tor from source, by default your Tor logs to <a
843
+href="http://en.wikipedia.org/wiki/Standard_streams">"stdout"</a>
844
+at log-level notice. If you enable logs in your torrc file, they
845
+default to <code>/usr/local/var/log/tor/</code>.
858 846
 </li>
859 847
 </ul>
860 848
 
861 849
 <p>
862
-If you want to change your logging setup, <a href="#torrc">open your
863
-torrc in an editor</a>.
864
-</p>
865
-
866
-<p>
867
-Find the section (near the top of the file) which contains the following line:
850
+To change your logging setup by hand, <a href="#torrc">edit your torrc</a>
851
+and find the section (near the top of the file) which contains the
852
+following line:
868 853
 </p>
869 854
 
870 855
 <pre>
871
-##torrc go to stdout at level "notice" unless redirected by something else, like one of the below lines.
856
+\## Logs go to stdout at level "notice" unless redirected by something
857
+\## else, like one of the below lines.
872 858
 <pre>
873 859
 
874 860
 <p>
875
-Now, assuming you want Tor to send complete debug, info, notice, warn,
861
+For example, if you want Tor to send complete debug, info, notice, warn,
876 862
 and err level messages to a file, append the following line to the end
877 863
 of the section:
878 864
 </p>
... ...
@@ -882,19 +868,10 @@ Log debug file c:/program files/tor/debug.log
882 868
 </pre>
883 869
 
884 870
 <p>
885
-Replace <code>c:/program files/tor/debug.log</code> with a
886
-directory/filename for your Tor log.
887
-</p>
888
-
889
-<p>
890
-If you also want Tor to output to stdout, append the following line to
891
-the section as well:
871
+Replace <code>c:/program files/tor/debug.log</code> with a directory
872
+and filename for your Tor log.
892 873
 </p>
893 874
 
894
-<pre>
895
-Log notice stdout
896
-</pre>
897
-
898 875
 <hr>
899 876
 
900 877
 <a id="DoesntWork"></a>
... ...
@@ -911,7 +888,7 @@ Firefox correctly configured to send its traffic through Tor?
911 888
 Vidalia will turn green. You can also check in the Vidalia
912 889
 Control Panel to make sure it says "Connected to the Tor
913 890
 network!" under Status. For those not using Vidalia, check your <a
914
-href="<wikifaq>#HowdoIsetuploggingorseeTorslogs">Tor logs</a> for
891
+href="#Logs">Tor logs</a> for
915 892
 a line saying that Tor "has successfully opened a circuit. Looks like
916 893
 client functionality is working."
917 894
 </p>
... ...
@@ -938,8 +915,8 @@ could be preventing Tor from making network connections.</li>
938 915
 <li>Are you in China, or behind a restrictive corporate network firewall
939 916
 that blocks the public Tor relays? If so, you should learn about <a
940 917
 href="<page docs/bridges>">Tor bridges</a>.</li>
941
-<li>Check your <a href="<wikifaq>#HowdoIsetuploggingorseeTorslogs">Tor
942
-logs</a>. Do they give you any hints about what's going wrong?</li>
918
+<li>Check your <a href="#Logs">Tor logs</a>. Do they give you any hints
919
+about what's going wrong?</li>
943 920
 </ol>
944 921
 
945 922
 <p>
... ...
@@ -118,7 +118,7 @@ href="<wikifaq>#RelayOrBridge">bridge</a> for users in countries that censor the
118 118
     </li>
119 119
 
120 120
     <li>Restart your relay. If it <a
121
-    href="<wikifaq>#Logs">logs
121
+    href="<page docs/faq>#Logs">logs
122 122
     any warnings</a>, address them.
123 123
     </li>
124 124
 
... ...
@@ -140,9 +140,7 @@ href="<wikifaq>#RelayOrBridge">bridge</a> for users in countries that censor the
140 140
     <p>As soon as your relay manages to connect to the network, it will
141 141
     try to determine whether the ports you configured are reachable from
142 142
     the outside. This step is usually fast, but may take up to 20
143
-    minutes. Look for a
144
-    <a href="<wikifaq>#Logs">log
145
-    entry</a> like
143
+    minutes. Look for a <a href="<page docs/faq>#Logs">log entry</a> like
146 144
     <tt>Self-testing indicates your ORPort is reachable from the outside. Excellent.</tt>
147 145
     If you don't see this message, it means that your relay is not reachable
148 146
     from the outside &mdash; you should re-check your firewalls, check that it's
... ...
@@ -169,8 +169,7 @@
169 169
     <p>If Tor starts up again, great. Otherwise, something is wrong. First look at
170 170
     your logfiles for hints. It will print some warnings or error messages. That
171 171
     should give you an idea what went wrong. Typically there are typos in the torrc
172
-    or wrong directory permissions (See <a
173
-    href="<wikifaq>#Logs">the
172
+    or wrong directory permissions (See <a href="<page docs/faq>#Logs">the
174 173
     logging FAQ entry</a> if you don't know how to enable or find your
175 174
     log file.)
176 175
     </p>
177 176