ccampbell / chromelogger-python Goto Github PK
View Code? Open in Web Editor NEWPython library for logging variables to Google Chrome console
Python library for logging variables to Google Chrome console
You might want to put rows
inside a threading.local()
to play nice with multi-threaded servers.
Something like chromelogger.install_logging(level=logging.DEBUG)
would be very useful. Or just logging.root.addHandler(chromelogger.ChromeloggerHandler())
.
Hi,
Firefox has an option to activate server logging using this protocol.
It is not working because in:
def _log(args):
global backtraces
type = args[0:1]
....
type it is assigning a array (slice returns an array) and somehow the firefox was throwing an error about not getting type method.
I've changed to:
def _log(args):
global backtraces
type = args[0:1][0]
....
Seems to work in chrome and in the firefox implementation.
Does it makes sense to you? Do you think it's a bug in firefox implementation?
Thanks!.
PD: I'm testing in django project and linux.
We found issues trying to use chromelogger yesterday on our testing server which uses SSL. We had everything working locally over vanilla http but as soon as we stepped up to our testing server over SSL, we were throwing errors. We were running this on Apache using wsgi, if that matters. We spent some time debugging and were getting no where.
Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.