Global context logger, proxy context to threads

add docstring