write logs
# Use the logger of the global app objectthis.app.logger.info()this.app.logger.error()this.app.logger.debug()this.app.logger.warn()this.app.logger.write()
log location
before packaging: the root directory of the project
electron-egg/logs
packaged: software cache Directory
# windows (example)C:\Users\Administrator\AppData\Roaming\ee\logs# macOS (example)Users/apple/Library/Application Support/ee/logs# Linux (example)$XDG_CONFIG_HOME or ~/.config/ee/logs
custom log location
# Edit the config.default.js fileconfig.logger = { dir: path.join(appInfo.execDir, 'logs'), // Log directory}
Log files in json format
# Edit the config.default.js fileconfig.logger = { outputJSON: true,}