Add logging to stderr by default
fix logging ctx error