Remove "┏ Electron -------------------" console borders
See original GitHub issueSo a normal console.log()
takes up 6 lines (including the blank one):
┏ Electron -------------------
// output here
┗ ----------------------------
I really, really don’t want this! It makes it impossible to do your own debugging code.
Can it be disabled, or can this output be aliased to console.trace()
or some other utility function?
I just want to be in control of my own logging, thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:15
Top Results From Across the Web
How can I customize Electron border in specific event?
Create a border component inside your renderer. ... And set this border color as green or remove based on the event. Here is...
Read more >A file-system browser component for Electron/Vue.js ... - ITNEXT
We'll implement it as a single-file-template that will in turn demonstrate using a file-system oriented tree browser. In src/renderer/components ...
Read more >webContents | Electron
webContents.getAllWebContents() . Returns WebContents[] - An array of all WebContents instances. This will contain web contents for all windows, webviews, ...
Read more >create new version (2e7567e6) · Commits · front / hitrans · GitLab
console.log(`\n ${errorLog}failed to build renderer process`) ... border-radius: 4px; ... log += chalk.yellow.bold(`┏ ${proc} Process ${new Array((19 ...
Read more >Check-in Differences - Leo-el-vue
webpack.renderer.config') let electronProcess = null let manualRestart = false ... if (/[0-9A-z]+/.test(log)) { console.log( chalk[color].bold('┏ Electron ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@davestewart I am very interested because I feel the current log is takes up a lot of screen real-estate.
@bdsoha - that looks really nice! I got inspired and expanded on yours.
I added the following functionality:
name
,fg
andbg
colors for “tags” (see next line)trace()
method which inspects objects usingutil.inspect
This is what it looks like:
Here’s the above screenshot in code:
What does everyone think? (I can post the code of course)
@SimulatedGREG - this could certainly work as the default logger; you could have 3 loggers:
Electron
- setup, build, etcMain
- the main processRenderer
- the renderer process@gabrielstuff - yeah, this is obviously common in other languages too.
Do you need a dedicated log viewer for these?