Updated LOG Logging (markdown)

Jari Sundell
2026-04-20 01:11:39 +09:00
parent 7004149bd3
commit 74c3212960
+24
@@ -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
--------------