Use files instead of cStringIO for logging.

This is necessary because the logging info is communicated via the
configuration, which is passed to multiprocessing workers. Therefore the
configuration must be pickable (cStringIO is not).