From 92eecdfd521abf0990cbf3666afc84a9ba45985d Mon Sep 17 00:00:00 2001 From: rakshasa Date: Fri, 24 Oct 2025 15:36:07 +0200 Subject: [PATCH] Updated log group documentation. --- doc/manual/logging.md | 7 ++++--- doc/manual/logging.tex | 7 ++++--- doc/rtorrent.rc-example | 5 ++++- doc/rtorrent.rc.lua-example | 3 ++- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/doc/manual/logging.md b/doc/manual/logging.md index 215df995..738760e3 100644 --- a/doc/manual/logging.md +++ b/doc/manual/logging.md @@ -4,7 +4,7 @@ # log.open_file = "log name", "file path" - log.open_file = "rtorrent.log", (cat,/tmp/rtorrent.log.,(system.pid)) + log.open_file = "rtorrent.log", (cat,/tmp/rtorrent.log.,(system.pid)) A newly opened log file is not connected to any logging events. @@ -25,8 +25,9 @@ restarts, you can use the `log.append_file` in place of the log.add_output = "info", "rtorrent.log" - log.add_output = "dht_debug", "tracker.log" - log.add_output = "tracker_debug", "tracker.log" + log.add_output = "dht_all", "tracker.log" + log.add_output = "tracker_events", "tracker.log" + log.add_output = "tracker_requests", "tracker.log" Each log handle can be added to multiple different logging events. diff --git a/doc/manual/logging.tex b/doc/manual/logging.tex index 67aa294e..df362f5b 100644 --- a/doc/manual/logging.tex +++ b/doc/manual/logging.tex @@ -5,7 +5,7 @@ \begin{verbatim} # log.open_file = "log name", "file path" -log.open_file = "rtorrent.log", (cat,/tmp/rtorrent.log.,(system.pid)) +log.open_file = "rtorrent.log", (cat,/tmp/rtorrent.log.,(system.pid)) \end{verbatim} A newly opened log file is not connected to any logging events. @@ -20,8 +20,9 @@ Some control over formatting will be provided at a later date. log.add_output = "info", "rtorrent.log" -log.add_output = "dht_debug", "tracker.log" -log.add_output = "tracker_debug", "tracker.log" +log.add_output = "dht_all", "tracker.log" +log.add_output = "tracker_events", "tracker.log" +log.add_output = "tracker_requests", "tracker.log" \end{verbatim} Each log handle can be added to multiple different logging events. diff --git a/doc/rtorrent.rc-example b/doc/rtorrent.rc-example index 80831792..9cfe8747 100644 --- a/doc/rtorrent.rc-example +++ b/doc/rtorrent.rc-example @@ -101,8 +101,11 @@ schedule2 = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torre # Levels = critical error warn notice info debug # Groups = connection_* dht_* peer_* rpc_* storage_* thread_* tracker_* torrent_* print = (cat, "Logging to ", (cfg.logfile)) + log.open_file = "log", (cfg.logfile) + log.add_output = "info", "log" -##log.add_output = "tracker_debug", "log" +#log.add_output = "tracker_events", "log" +#log.add_output = "tracker_requests", "log" ### END of rtorrent.rc ### diff --git a/doc/rtorrent.rc.lua-example b/doc/rtorrent.rc.lua-example index eed5bf34..be3d0ffd 100644 --- a/doc/rtorrent.rc.lua-example +++ b/doc/rtorrent.rc.lua-example @@ -136,6 +136,7 @@ rc.schedule2('watch_load', '11', '10', 'load.verbose=(cat, (cfg.watch), "load/*. rc.print('Logging to '..rc.cfg.logfile()) rc.log.open_file('log', rc.cfg.logfile()) rc.log.add_output('info', 'log') ---rc.log.add_output('tracker_debug', 'log') +--rc.log.add_output('tracker_events', 'log') +--rc.log.add_output('tracker_requests', 'log') --[[ END of rtorrent.rc.lua ]]--