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.

Log not saved in Mac OS X

See original GitHub issue

Hi,

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

github_iconTop GitHub Comments

1reaction
megahertzcommented, Sep 27, 2018

@tombolala You should configure transports in the main process, not in renderer.

0reactions
tombolalacommented, Sep 27, 2018

Sorry for stupid questions. Got it working now!

Thanx Thomas

Read more comments on GitHub >

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

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