mitsuhiko/logbook — pull request #130 by yalon (2014-11-25 11:55:07+00:00)
Title: adding gevent support

Here's a change to add backward-compatible, non-intrusive support for gevent and logbook.

The idea behind the change is to add support for gevent *by user request*. This means that by default logbook will behave the same, and the user has to explicitly enable gevent support.

Couple of notable changes:
* Added push_greenlet/pop_greenlet/greenletbound to all context objects.
* Locks are now getting allocated by a new concurrency module that allocates a lock based on gevent being enabled or not.
* Thread & greenlet friendly RLock implementation.
* greenlet ID is added to logbook record.
* benchmarks are done w/ gevent enabled and gevent disabled.