Take out thread-local logfns