Use log4cxx instead of cerr.
Don't log threads, we are only using one.