-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renderer logs not written to file after updating to v5.2.0 #441
Comments
Your code looks fine. Can you try to call logging with a delay in a renderer process? E.g. |
Thanks for the quick reply. Unfortunately that still doesn't lead to the log file being written. I'm just trying it now in a vanilla Electron project. If that also doesn't work I'll link to the code here. |
OK I figured it out. Two things happening at once!
|
|
Hello, I encountered a similar problem. The logs printed in the main process are not printed in the console of the renderer process. Is it because I am not using bundler, I cannot import "electron-log/renderer" in HTML, or is it another configuration problem? |
@TuKun33 When contextIsolation/sandboxing is enabled (by default), and no bundling is used, it's only possible to use a limited set of logger features in a renderer process. |
Hi,
After updating to
v5.2.0
fromv4.2.2
I'm no longer seeing renderer process logs written to therenderer.log
file as before. I've set up the main/remote logging as per the README, and I am getting console logs which indicates that the logs are being sent to the main process via IPC ok. Any ideas what I might be doing wrong?My setup is as follows:
Main process
Renderer process
The text was updated successfully, but these errors were encountered: