From 36ff80c5f822ac20ffcb627a939e192a3fa87804 Mon Sep 17 00:00:00 2001 From: PyroScope Project Date: Thu, 10 Mar 2016 01:10:48 +0100 Subject: [PATCH] session dir, logging --- CONFIG-Template.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CONFIG-Template.md b/CONFIG-Template.md index ebe44a4..99b78b7 100644 --- a/CONFIG-Template.md +++ b/CONFIG-Template.md @@ -21,6 +21,11 @@ use-cases in the appropriate sections of the wiki, like the # *** BIG TODO *** +# Instance layout (base paths) +method.insert = cfg.basedir, private|const|string, (cat,"/home/USERNAME/rtorrent/") +method.insert = cfg.logs, private|const|string, (cat,(cfg.basedir),"log/") +method.insert = cfg.logfile, private|const|string, (cat,(cfg.logs),"rtorrent-",(system.time),".log") + # Listening port for incoming peer traffic (fixed; you can also randomize it) network.port_range.set = 50000-50000 network.port_random.set = no @@ -49,5 +54,16 @@ network.max_open_sockets.set = 300 pieces.memory.max.set = 1800M network.xmlrpc.size_limit.set = 2M +# Basic operational settings (no need to change these) +session.path.set = (cat,(cfg.basedir),".session") + +# Logging: +# 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" + ### END of rtorrent.rc ### ``` \ No newline at end of file