Replies: 1 comment 4 replies
-
You can define your path based on the second argument of check |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i suppose to output the log in the renderer to a custom file, attempting to use IPC channel, but the log is being output to the main.log file. How can I customize the log file path in the rendering process?
// main.ts
import log from 'electron/main'
log.initialize({spyRenderedConsole:true})
log.transports.file.resolvePathFn = ()=>{ return join(path,'main.log')}
// renderer.ts
ipcRenderer.send('ELECTRON_LOG',{
data: 'test',
level:'info',
})
if i create logger instances,how to assign renderer instances to output log file path?
Beta Was this translation helpful? Give feedback.
All reactions