mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
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:
committed by
Maxime Beauchemin
parent
2f5cff7d9f
commit
fd84fd89ce
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user