frantic0 / sema-engine

A Signal Engine for a Live Code Language Ecosystem
https://frantic0.github.io/sema-engine/
MIT License
31 stars 6 forks source link

added types to console capture #12

Closed smilo7 closed 3 years ago

frantic0 commented 3 years ago

@smilo7 there were a few things needed that I added

The worker console was not taken over and the logs in the worker scope were not directed to the logger. To achieve that we need to overwrite self.console.

We still want to get all logs in the console, so we also want to keep the default functionality.
This way the logging mechanism serves both the user layer, by preventing them from having to open the devtools console and having a filtered logs, and us as developers to get all the original console logs.

all changed the payload of the logs from text to array

check the latest commit 20a26ea3628ac180b46e1b1bbbd1956a0fce74be