question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macOS: can't find log file

See original GitHub issue

App 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
megahertzcommented, Dec 27, 2016

log.transports.file.level = ‘info’;

1reaction
dustinsoftwarecommented, Feb 8, 2017

Thanks, I was also thrown off that the default file log verbosity is not info.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found