Differentiate between messages coming from render and main process?
See original GitHub issueIs it possible to differentiate the log format for messages coming from the main process versus the render process?
For instance:
[10:39:18.216] [main] [info] In development mode
[10:39:18.219] [main] [info] Logging to console at 'info' level
[10:39:25.577] [render] [info] Starting WebSocket: ws://localhost:8888/api/kernels/740e543d-70f4-412d-8efc-f982af7d3c88
[10:39:25.578] [render] [info] Starting WebSocket: ws://localhost:8888/api/kernels/740e543d-70f4-412d-8efc-f982af7d3c88
I attempted to do this via the log.transports.console.format
and the log.transports.rendererConsole.format
options, but it only formatted it using the log.transports.console.format
.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Deep dive into Electron's main and renderer processes
The render process is responsible for running the user-interface of your app, or in other words, a web page which is an instance...
Read more >Electron - Why do we need to communicate between the main ...
The Main process creates web pages by creating BrowserWindow instances. Each BrowserWindow instance runs the web page in its Renderer process.
Read more >Main and renderer process communication in Electron
Learn 3 different ways how to communicate between main and renderer process in Electron.
Read more >MessagePorts in Electron
In this example, the main process sets up a MessageChannel, then sends each port to a different renderer. This allows renderers to send...
Read more >Handling interprocess communications in Electron ...
A process, in this context, basically describes how an electron application runs and is divided into two parts: Main process; Renderer process.
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 FreeTop 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
Top GitHub Comments
@bhj I’ll add a filename property in v3.
Resolved in v3.0.0-beta2