betodealmeida commented on a change in pull request #4702: RFC: add logger that 
logs into browser console
URL: 
https://github.com/apache/incubator-superset/pull/4702#discussion_r177941322
 
 

 ##########
 File path: CONTRIBUTING.md
 ##########
 @@ -195,6 +195,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)
 
 Review comment:
   Let me give it a try.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to