From 74c3212960051fb0071e5f9b79f9681c6cbd1538 Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Mon, 20 Apr 2026 01:11:39 +0900 Subject: [PATCH] Updated LOG Logging (markdown) --- LOG-Logging.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/LOG-Logging.md b/LOG-Logging.md index c66e95b..e42632c 100644 --- a/LOG-Logging.md +++ b/LOG-Logging.md @@ -13,6 +13,8 @@ A newly opened log file is not connected to any logging events. Some control over formatting will be provided at a later date. + + Adding outputs to events ------------------------ @@ -28,6 +30,28 @@ Adding outputs to events Each log handle can be added to multiple different logging events. + +Special Commands for Early Logging +---------------------------------- + +``` +# +# do:log.open_file=system,/Users/rakshasa/torrent/host/logs/system.log +# do:log.open_file=rtorrent,/Users/rakshasa/torrent/host/logs/rtorrent.log +# +# do:log.add_output=system,system +# do:log.add_output=debug,rtorrent +# + +log.open_file = "crash", /Users/rakshasa/torrent/host/logs/crash.log +log.add_output = "critical", "crash" +``` + +Above is an example `rtorrent.rc` file that adds logging outputs before normal initialization and reading of config files. + +It handles any `# do:` prefix as special commands, and is limited and has strict syntax requirements. + + Logging events --------------