question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Differentiate between messages coming from render and main process?

See original GitHub issue

Is 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
megahertzcommented, Sep 21, 2018

@bhj I’ll add a filename property in v3.

1reaction
megahertzcommented, Jan 12, 2019

Resolved in v3.0.0-beta2

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found