sebdah / dynamic-dynamodb

Dynamic DynamoDB provides auto scaling for AWS DynamoDB
http://dynamic-dynamodb.readthedocs.org/
Apache License 2.0
618 stars 124 forks source link

Deleting old log files #322

Closed airbone42 closed 7 years ago

airbone42 commented 7 years ago

I assume this is a feature request. But it would be great if dynamic-dynamodb could automatically delete its log-files which are older than x days.

Best regards, Tobias.

airbone42 commented 7 years ago

RTFM first Tobias.

This is already integrated: (from http://dynamic-dynamodb.readthedocs.io/en/latest/configuration_options.html#logging-configuration) Dynamic DynamoDB will rotate the log-file nightly per default and keep 5 days of backups. If you want to override this behavior, please have a look at the log-config-file option which allows you to use custom Python logging configuration files.