Log not saved in Mac OS X
See original GitHub issueHi,
I’m new to electron, and I tried your logger v2.2.15 in my macOS HighSierra 10.13.5 (17F77).
In my main.js, at the top I added: var log = require('electron-log')
Inside an ipc event (button click) I added: log.info('test')
In the terminal I can see: [16:55:06.806] [info] test
But if I browse to ~/Library/Logs there is no folder and no log file for my app.
I was expecting to find a folder called my-app
and a file called log.log inside, as you wrote in the docs… can you help?
In my package.json:
"name": "my-app",
"version": "0.1.0",
"main": "src/main/main.js",
"scripts": {
"start": "electron ."
},
...
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Locate a log file using Console on Mac - Apple Support
In the Console app on your Mac, select Log Reports in the sidebar. If the Log Reports category isn't visible, click the Sidebar...
Read more >Save Mac storage space by cleaning out abandoned log files
You can find most of your log files in your home directory at ~/Library/Logs . In the Finder, choose Go > Go To...
Read more >Saving System Report and system.log Files (macOS) - Avast
OS X 10.11. System Report. Click the apple logo in the top-left corner; Click About This Mac; Click System Report; In the menu...
Read more >How to clear log files on Mac? - MacPaw
Download CleanMyMac X (free version) and launch it. Choose System Junk in the left menu. Click Scan at the bottom of CleanMyMac X....
Read more >How to Fix Documents Not Saving on macOS 10.15
To stop your permission settings from getting in the way when you want to save files on Mac OS 10.15, revert back to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tombolala You should configure transports in the main process, not in renderer.
Sorry for stupid questions. Got it working now!
Thanx Thomas