Package skytools :: Module skylog :: Class EasyRotatingFileHandler
[frames] | no frames]

Class EasyRotatingFileHandler

source code

    logging.Filterer --+                
                       |                
         logging.Handler --+            
                           |            
       logging.StreamHandler --+        
                               |        
             logging.FileHandler --+    
                                   |    
logging.handlers.RotatingFileHandler --+
                                       |
                                      EasyRotatingFileHandler

Easier setup for RotatingFileHandler.

Instance Methods
 
__init__(self, filename, maxBytes=10485760, backupCount=3)
Args same as for RotatingFileHandler, but in filename '~' is expanded.
source code

Inherited from logging.handlers.RotatingFileHandler: doRollover, emit

Inherited from logging.FileHandler: close

Inherited from logging.StreamHandler: flush

Inherited from logging.Handler: acquire, createLock, format, handle, handleError, release, setFormatter, setLevel

Inherited from logging.Filterer: addFilter, filter, removeFilter

Method Details

__init__(self, filename, maxBytes=10485760, backupCount=3)
(Constructor)

source code 
Args same as for RotatingFileHandler, but in filename '~' is expanded.
Overrides: logging.handlers.RotatingFileHandler.__init__