This seems like a terrible interface for JS. Either make the `redirect_console` 4 different options, or maybe make it take an array of like `['log', 'debug']` for saying which properties to redirect.