Working on a project that requires that I am able to pickle the container object at any point, since we expect it to fail on external conditions quite frequently and be able to
Logger can now be pickled like many other objects.
Logger
import pickle import logging log = logging.getLogger(__name__) logger_pickle = pickle.dumps(log) # and of coarse, to load: log = pickle.loads(logger_pickle)