kieslee / mlogging Goto Github PK
View Code? Open in Web Editor NEWlogging for multiprocess
logging for multiprocess
Introduction ============ mlogging provide an additional handlers for MultiProcess program based on logging module(Copyright 2001-2007 by Vinay Sajip) It provide two handlers : RotatingFileHandler_MP TimedRotatingFileHandler_MP System requirements =================== * Python version 2.6 or higher; * Linux 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)
You haven't updated it for a long time. Is this the final version?
if i have problem on windows, do you have any ideas
following code in init.py
_lock_dir = '.lock'
if os.path.exists(_lock_dir):
pass
else:
os.mkdir(_lock_dir)
when I import mlogging , it will mkdir in current path;
if it has no Permission,
will raise OSError: [Errno 13] Permission denied: '.lock'
why not use absolutePath like '/tmp/.lock'
If logging file's size is 3G, and every midnight file rotated. Then it will cause long time for logging to rotate the old file. Which cause the process halt for 2 mins.
Check File, it use shutil.copy old file, why not use shutil.move?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.