1
0
mirror of https://github.com/spl0k/supysonic.git synced 2025-01-02 22:36:18 +00:00

log rotate documentation

This commit is contained in:
Alban Féron 2023-03-18 12:54:11 +01:00
parent eac6bdf1a3
commit 03ac57ca26
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165

View File

@ -121,6 +121,11 @@ Configuration relative to the HTTP server.
Defaults to ``WARNING``. Defaults to ``WARNING``.
``log_rotate``
Enable automatic log rotation (when logs are enabled) every day at midnight.
Set it to ``no`` if you don't want to rotate the logs or if you use external
utilities such as :command:`logrotate`. Defaults to ``yes``.
``mount_api`` (``on`` or ``off``) ``mount_api`` (``on`` or ``off``)
Enable or disable the Subsonic REST API. Should be kept on or Supysonic would Enable or disable the Subsonic REST API. Should be kept on or Supysonic would
be quite useless. Exists mostly for testing purposes. be quite useless. Exists mostly for testing purposes.
@ -161,6 +166,9 @@ Sample configuration::
; Default: WARNING ; Default: WARNING
log_level = WARNING log_level = WARNING
; Enable log rotation. Default: yes
log_rotate = yes
; Enable the Subsonic REST API. You'll most likely want to keep this on. ; Enable the Subsonic REST API. You'll most likely want to keep this on.
; Here for testing purposes. Default: on ; Here for testing purposes. Default: on
;mount_api = on ;mount_api = on
@ -216,6 +224,11 @@ library folders and providing the jukebox feature.
Defaults to ``WARNING``. Defaults to ``WARNING``.
``log_rotate``
Enable automatic log rotation (when logs are enabled) every day at midnight.
Set it to ``no`` if you don't want to rotate the logs or if you use external
utilities such as :command:`logrotate`. Defaults to ``yes``.
Sample configuration:: Sample configuration::
[daemon] [daemon]
@ -241,6 +254,9 @@ Sample configuration::
log_file = /var/supysonic/supysonic-daemon.log log_file = /var/supysonic/supysonic-daemon.log
log_level = INFO log_level = INFO
; Enable log rotation. Default: yes
log_rotate = yes
.. _conf-lastfm: .. _conf-lastfm:
``[lastfm]`` section ``[lastfm]`` section