mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-10 17:03:37 +00:00
extract class and functions from boswatch.py to includes
This commit is contained in:
parent
259239a90b
commit
f58891a8ec
4 changed files with 89 additions and 57 deletions
18
includes/MyTimedRotatingFileHandler.py
Normal file
18
includes/MyTimedRotatingFileHandler.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue