RFC: add logger that logs into browser console (#4702)

* Option for logging into browser console

* Move import

* Add lint req

* Add docs, use Flask logger
This commit is contained in:
Beto Dealmeida
2018-04-12 21:48:17 -07:00
committed by Maxime Beauchemin
parent 2f5cff7d9f
commit fd84fd89ce
6 changed files with 63 additions and 11 deletions

View File

@@ -200,6 +200,19 @@ Check the [OS dependencies](https://superset.incubator.apache.org/installation.h
superset runserver -d
### Logging to the browser console
When debugging your application, you can have the server logs sent directly to the browser console:
superset runserver -d --console-log
You can log anything to the browser console, including objects:
from superset import app
app.logger.error('An exception occurred!')
app.logger.info(form_data)
## Setting up the node / npm javascript environment
`superset/assets` contains all npm-managed, front end assets.