mlogging

  214 downloads
0.1 GPL (GNU General Public License)    
  not rated
Logging for MultiProcess

description

download

specifications

mlogging is a tool to provide an additional handlers for MultiProcess program based on logging module.

It provides two handlers :

- RotatingFileHandler_MP
- TimedRotatingFileHandler_MP

Installation

python setup.py install

Example

from mlogging import RotatingFileHandler_MP

my_logger = logging.getLogger('MyLogger')
# Add the log message handler to the logger
handler = RotatingFileHandler_MP(
              LOG_FILENAME, maxBytes=200, backupCount=5)

my_logger.addHandler(handler)
READ MORE   
Last updated on February 28th, 2012

0 User reviews so far.

SUBMIT