Comments (3)
- loggers cannot be pickled in python 2.7 or 3.6
- loggers can be pickled in python 3.7
from alphatwirl.
-
working on multiprocessing first
-
using the threading version in the example at https://docs.python.org/3/library/logging.handlers.html#queuehandler
-
tried the multiprocessing version as well. decided not to use for now because handlers need to be configured in the other process. copy an example code here for the record.
class LoggingListener(multiprocessing.Process):
def __init__(self, queue):
multiprocessing.Process.__init__(self)
self.queue = queue
def run(self):
while True:
record = self.queue.get()
if record is None:
break
logger = logging.getLogger(record.name)
logger.handle(record)
the logger in the main process won't received the record
.
-
idea for the future
- pass
record
to the progress bar so that the progress bar can control both progress bars and logging messages on stdout.
- pass
-
useful links
from alphatwirl.
implemented: 611214e
from alphatwirl.
Related Issues (20)
- handle TChain with no files HOT 1
- fix Read the Docs HOT 1
- RuntimeWarning in travis
- rename valOutColumnNames HOT 2
- should min be applied on bin boundaries rather than values? HOT 2
- develop progress presentation for jupyter notebook HOT 5
- fix travis for python 2.7 with ROOT HOT 11
- avoid mutable default HOT 1
- support the "with" statement for using "concurrently"
- support decorator for using "concurrently"
- allow elements of the option binnings of KeyValueComposer to be None
- ValueError with duplicate datasets HOT 4
- add unit tests to test if receive_one() in TaskPackageDropbox unpickles one result
- HTCondorJobSubmitter crashes if problem submitting HOT 1
- correct module names for multiple _deprecated_class_method_option
- "can't pickle _thread.lock" in ResumableDatasetLoop with SubprocessRunner in Python 3 HOT 1
- update tests for TaskPackageDropbox
- make simple_repr work HOT 1
- enable coverage in Travis-CI HOT 1
- ROOT is not imported in Travis HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alphatwirl.