Where are the error logs from logseq?

I am trying the chatGPT plugin for logseq. And though I have activated the api key, configured it, restarted and READ this forum for the “unknown error”… I wish I could just read what the error is.

In general, where can I find logseq’s error log?

Thanks!

Welcome to Logseq and the community! Great to see you’re working on a plugin.

Logseq being built with Electron, you can just open the Chrome Dev Tools. See this Figma tutorial on how to open it (Logseq works the same):

For most plugin dev work, the console should be enough. If you want more logs, you can have a look at the main.log file, which you can find here:

  • Windows: C:\Users\USER_NAME\AppData\Roaming\Logseq\logs\main.log
  • macOS: ~/Library/Logs/Logseq/main.log
  • Linux: ~/.config/logseq/logs/main.log

I hope this helps!