Read the statement by Michael Teeuw here.
creating a logger to capture module console.log/Log.log output
-
I have been fighting some crashes for a while, but using the dev window doesn’t help. it dies when Electron dies…
I found this logger, and it has helped a LOT…
thought others would be interested…
you put the javascript in a file (I used js/logger.js)
and then add the two lines to the index.html file (change the path/name of the logger.js file to match what you do)the log file will be in ~/.config/Electron/logs
(note the leading dot on config) -
So can we implement it into the code for all to use? What do you think?
-
@lavolp3 one could submit a PR to include it… wouldn’t want it on all the time, as it will eat up disk space…
MMM-Logging does similar , but always failed for me when the debugger failed…
-
@sdetweil Well, there should be a way to clear the log output once in a while!?
I’ll test it as well… -
@lavolp3 one could just erase the files… its just a lot to learn for the newer folks, who are already swamped…