Skip to content

Commit

Permalink
added link to full logging snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
pyroscope committed Mar 25, 2017
1 parent f94a009 commit dcdcd10
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/use-cases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ Logs With Rotation and Pruning

The following longer snippet adds logs that don't endlessly grow,
get archived after some days, and are finally deleted after a while.
The time spans for this are set using
See `rtorrent.d/15-logging.rc`_ for the full snippet.

The time spans for archival and pruning are set using
``pyro.log_archival.days`` (default: 2) and
``pyro.log_retention.days`` (default: 7).
You can change these in your main configuration,
*after* including the snippet via :term:`import`.

.. literalinclude:: pimp-my-box/roles/rtorrent-ps/templates/rtorrent/rtorrent.d/15-logging.rc
:language: ini
Expand Down Expand Up @@ -78,6 +82,9 @@ The ``pyro.log_rotate`` method is used near the end to open log files at startup
:end-before: END logging


.. _`rtorrent.d/15-logging.rc`: https://github.com/pyroscope/pimp-my-box/blob/master/roles/rtorrent-ps/templates/rtorrent/rtorrent.d/15-logging.rc


Set a Download to “Seed Only”
-----------------------------

Expand Down

0 comments on commit dcdcd10

Please sign in to comment.