-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging #6
Comments
Maybe u need webpack to bundle your scripts and then do the configuration: new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}) https://webpack.js.org/guides/production/#specify-the-environment |
Still, the logging is currently polluting my dev environment logs. I'm willing to submit a PR if you're interested in logging with
|
It designed for developer to help them realized which request had been cached, given them more runtime information, in my purpose. The Maybe I need to use another environment variable for logging switcher rather than new webpack.DefinePlugin({
'process.env.LOGGER_LEVEL': JSON.stringify('debug')
}) |
That'd be great :) |
released at v1.2.0, see https://github.com/kuitos/axios-extensions#enable-logging |
Hi there
Currently, the only way to remove the log output from this module is to set
NODE_ENV
to production.Moreover,
axios
is expected to run in Node.js and in browsers: I don't think there is a way to set such a variable in the later environment.Could we consider using the
debug
package instead of console.log ?(See https://github.com/visionmedia/debug#browser-support)
The text was updated successfully, but these errors were encountered: