feat: 保存 renderer 日志到文件

This commit is contained in:
qier222 2022-04-16 13:30:25 +08:00
parent d3089b8940
commit 4c625b172c
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
12 changed files with 61 additions and 31 deletions

View file

@ -1,4 +1,5 @@
import { IpcChannels } from '@/main/IpcChannelsName'
import { ElectronLog } from 'electron-log'
export {}
@ -20,6 +21,7 @@ declare global {
isMac: boolean
isWin: boolean
}
log?: ElectronLog
}
}