How do you change the path or filename of the renderer log? #304
-
I can easily set the path or filename of the main.log using this in main.ts:
But how do I do the same for the renderer process please? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Run the same code in a renderer process. In the current version, it's configured separately |
Beta Was this translation helpful? Give feedback.
-
Thanks @megahertz. But if I run that same code in the renderer, I get this:
Same error if I use |
Beta Was this translation helpful? Give feedback.
-
Thanks @megahertz. Marking this as the answer. I used IPC to send messages through to main process as you suggest and this works well. Also means you get just one log file which is a bit neater. |
Beta Was this translation helpful? Give feedback.
Thanks @megahertz. Marking this as the answer. I used IPC to send messages through to main process as you suggest and this works well. Also means you get just one log file which is a bit neater.