Use log4j for errors in CopyOnWriteContext.cpp.