Skip to content

Instantly share code, notes, and snippets.

View apollo13's full-sized avatar

Florian Apolloner apollo13

View GitHub Profile
@apollo13
apollo13 / chromelogger.py
Last active May 12, 2022 01:09
Django logging to Firefox/Chrome devtools
"""
License: MIT - https://opensource.org/licenses/MIT
ChromeLogger is a protocol which allows sending logging messages to the Browser.
This module implements simple support for Django. It consists of two components:
* `LoggingMiddleware` which is responsible for sending all log messages
associated with the request to the browser.
* `ChromeLoggerHandler` a python logging handler which collects all messages.
parseBacktrace: function (backtrace) {
if (!backtrace) {
return null;
}
let result = backtrace.match(/^(.+?)\s*:\s*(\d+)$/);
if (!result || result.length != 3) {
return backtrace;
}
id: 1
id: 2
id: 3
id: 4
id: 5
id: 6
id: 7
id: 251
id: 255
------------------------------------------
{
"name": "conticki",
"dependencies": {
"foundation": "~5.5.0"
},
"apps": {
"conticki": {
"app_concat.js": [
"jquery/dist/jquery.js",
"foundation/js/foundation.js",

Keybase proof

I hereby claim:

  • I am apollo13 on github.
  • I am apollo13 (https://keybase.io/apollo13) on keybase.
  • I have a public key whose fingerprint is 4654 4D5B 9683 F7A8 CB69 8D3E 2E0C 8F0C 165D 364C

To claim this, I am signing this object: