-
I'm trying to add a menu item to show the log file in the OS. Something like this: shell.showItemInFolder(app.getPath('logs')) ...but with the electron-log specific path to the (current?) log file. How would I get that value? I'm guessing it's going to be something like shell.showItemInFolder(log.transports.file.filePath) but I can't seem to figure it out. |
Beta Was this translation helpful? Give feedback.
Answered by
megahertz
Jun 28, 2021
Replies: 1 comment 1 reply
-
By default, there are many log files for different process, so I would prefer |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jjeff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default, there are many log files for different process, so I would prefer
shell.openPath(path.dirname(log.transports.file.getFile().path))