Skip to content

Commit 70eafcf

Browse files
authored
feat: dev logs (#2690)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 92fd206 commit 70eafcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ import { isDevMode } from './utils';
2222

2323
log.initialize();
2424

25+
if (!app.isPackaged) {
26+
log.transports.file.fileName = 'main.dev.log';
27+
}
28+
2529
const mb = menubar({
2630
icon: TrayIcons.idle,
2731
index: Paths.indexHtml,

0 commit comments

Comments
 (0)