Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Document log paths

Manav Rathic7aa5ccd1f4d
diff --git a/desktop/src/main/log.ts b/desktop/src/main/log.ts
index e39d2be9c5..60870c913c 100644
--- a/desktop/src/main/log.ts
+++ b/desktop/src/main/log.ts
@@ -5,11 +5,8 @@ import { isDev } from "./utils/electron";
/**
* Initialize logging in the main process.
*
- * This will set our underlying logger up to log to a file named `ente.log`,
- *
- * - on Linux at ~/.config/ente/logs/ente.log
- * - on macOS at ~/Library/Logs/ente/ente.log
- * - on Windows at %USERPROFILE%\AppData\Roaming\ente\logs\ente.log
+ * This will set our underlying logger up to log to a file named `ente.log`, see
+ * [Note: App log path].
*
* On dev builds, it will also log to the console.
*/
diff --git a/desktop/src/main/services/dir.ts b/desktop/src/main/services/dir.ts
index 293a720f01..d97cad6fb2 100644
--- a/desktop/src/main/services/dir.ts
+++ b/desktop/src/main/services/dir.ts
@@ -64,14 +64,18 @@ export const openLogDirectory = () => openDirectory(logDirectoryPath());
* Note that Chromium also stores the browser state, e.g. localStorage or disk
* caches, in userData.
*
+ * https://www.electronjs.org/docs/latest/api/app
+ *
+ * [Note: App log path]
+ *
* Finally, there is the "logs" directory. This is not within "appData" but has
* a slightly different OS specific path. Since our log file is named
* "ente.log", it can be found at:
*
* - macOS: ~/Library/Logs/ente/ente.log (production)
* - macOS: ~/Library/Logs/Electron/ente.log (dev)
- *
- * https://www.electronjs.org/docs/latest/api/app
+ * - Linux: ~/.config/ente/logs/ente.log
+ * - Windows: %USERPROFILE%\AppData\Roaming\ente\logs\ente.log
*/
const logDirectoryPath = () => app.getPath("logs");