[whishlist] add logrotate config for /var/log/privacyidea/privacyidea.log

Hello,

the file /var/log/privacyidea/privacyidea.log on my server is 5M since
October 1st. I’d like to have all default log from the packages to
automatically rotate, so they get kept small enough. Can you add a
config file /etc/logrotate.d/privacyided.conf to the packages?

Jochen–
The only problem with troubleshooting is that the trouble shoots back.

Hi Jochen,

the logging of privacyIDEA uses the python logging framework, which
supports its own log rotating.

Please see advanced logging:
http://privacyidea.readthedocs.org/en/latest/installation/system/logging.html#advanced-logging

These are the interesting lines:
class=logging.handlers.RotatingFileHandler
backupCount=14
maxBytes=10000000

Kind regards
CorneliusAm Montag, den 30.11.2015, 22:13 +0100 schrieb Jochen Hein:

Hello,

the file /var/log/privacyidea/privacyidea.log on my server is 5M since
October 1st. I’d like to have all default log from the packages to
automatically rotate, so they get kept small enough. Can you add a
config file /etc/logrotate.d/privacyided.conf to the packages?

Jochen


The only problem with troubleshooting is that the trouble shoots back.


Cornelius Kölbel
@cornelinux
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel

signature.asc (836 Bytes)

Hi Cornelius,Am 2015-11-30 23:03, schrieb Cornelius Kölbel:

Please see advanced logging:
http://privacyidea.readthedocs.org/en/latest/installation/system/logging.html#advanced-logging

These are the interesting lines:
class=logging.handlers.RotatingFileHandler
backupCount=14
maxBytes=10000000

Thanks for the hint.

Jochen