macOS: can't find log file
See original GitHub issueApp logs to console, but I don’t see any file at the default path ~/Library/Logs/<app name>/log.log
. I’ve checked both ~/Library/Logs/
and ~/Users/username/Library/Logs/
.
Please advise.
const log = require('electron-log')
log.transports.file.format = '{h}:{i}:{s}:{ms} {text}'
log.transports.file.maxSize = 5 * 1024 * 1024
function scheduleRandomNote () {
let rule
return schedule.scheduleJob(rule, function () {
log.info('triggered-random-note')
mainWindow.webContents.send('trigger-random-note')
})
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to View the System Log on a Mac - How-To Geek
Find Log Files on Disk This means you can browse to them in Finder or via the Terminal, open them in other applications,...
Read more >How do I find log files in OSX? - Sync
How do I find log files in OSX? · 1. Click the Sync icon in the menu bar · 2. Click Preferences ·...
Read more >How to Find the Log Files on a Mac Computer - Techwalla
Scroll down the screen and locate the "Utilities" tab in the center of the window. Click on that tab to access the next...
Read more >How to get System Report and the system.log file in macOS
Press Command + S on your keyboard. · Type the name for the report, select the folder to save it and click Save....
Read more >How to Delete System Log Files on Your Mac - MacKeeper
For convenience, most Mac application logs are saved in the same place (~/Library/Logs) while Mac system logs are found elsewhere (/var/log).
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
log.transports.file.level = ‘info’;
Thanks, I was also thrown off that the default file log verbosity is not
info
.