unexport log from context, minor comments