Skip to content

Commit

Permalink
fix: log messages to file
Browse files Browse the repository at this point in the history
in order to debug production apps
  • Loading branch information
Xiphe committed Sep 14, 2020
1 parent d5b1d00 commit c82afa8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions main/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import '../src/shared/log';
export { default } from './main';
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"@types/lodash.isequal": "4.5.5",
"classnames": "2.2.6",
"date-fns": "2.15.0",
"electron-log": "4.2.4",
"electron-settings": "3.2.0",
"electron-updater": "4.3.4",
"expr-eval": "2.0.2",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './shared/log';
import 'focus-visible';
import initTheme from './initTheme';
import { InitRes } from './budget/getInitData';
Expand Down
2 changes: 2 additions & 0 deletions src/shared/log.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { functions } from 'electron-log';
Object.assign(console, functions);

0 comments on commit c82afa8

Please sign in to comment.