write logs
# Use the logger of the global app object
this.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 file
config.logger = {
dir: path.join(appInfo.execDir, 'logs'), // Log directory
}
Log files in json format
# Edit the config.default.js file
config.logger = {
outputJSON: true,
}