Skip to content

Commit

Permalink
feat: Add electrologger to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
erdkse committed Aug 15, 2021
1 parent 5eb3c17 commit db5d992
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import * as path from 'path';
import * as isDev from 'electron-is-dev';
import installExtension, {REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS} from 'electron-devtools-installer';
import {execSync} from 'child_process';
import * as ElectronLog from 'electron-log';

import {APP_MIN_HEIGHT, APP_MIN_WIDTH} from '../src/constants/constants';

Object.assign(console, ElectronLog.functions);

const ElectronStore = require('electron-store');

const userHomeDir = app.getPath('home');
Expand Down
15 changes: 13 additions & 2 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 @@ -72,6 +72,7 @@
"dayjs": "^1.10.6",
"electron-devtools-installer": "^3.2.0",
"electron-is-dev": "^2.0.0",
"electron-log": "^4.4.1",
"electron-store": "^8.0.0",
"es6-tween": "^5.5.11",
"fast-deep-equal": "^3.1.3",
Expand Down

0 comments on commit db5d992

Please sign in to comment.