mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-13 04:36:16 +00:00
Updated LOG Logging (markdown)
+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
|
||||
--------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user