extract class and functions from boswatch.py to includes

This commit is contained in:
JHCD 2015-06-25 16:13:52 +02:00
parent 259239a90b
commit f58891a8ec
4 changed files with 89 additions and 57 deletions

View file

@ -0,0 +1,18 @@
#!/usr/bin/python
# -*- coding: cp1252 -*-
#
"""
This Class extended the TimedRotatingFileHandler with the possibility
to change the backupCount after initialization.
@author: Jens Herrmann
"""
import logging
class MyTimedRotatingFileHandler(logging.handlers.TimedRotatingFileHandler):
"""Extended Version of TimedRotatingFileHandler"""
def setBackupCount(self, backupCount):
"""Set/Change backupCount"""
self.backupCount = backupCount