Better support for enabling logging in browser