mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 17:16:16 +08:00
7c2574b1ca
Co-authored-by: Himself65 <himself65@outlook.com>
14 lines
287 B
TypeScript
14 lines
287 B
TypeScript
import { shell } from 'electron';
|
|
import log from 'electron-log';
|
|
|
|
export const logger = log;
|
|
|
|
export function getLogFilePath() {
|
|
return log.transports.file.getFile().path;
|
|
}
|
|
|
|
export function revealLogFile() {
|
|
const filePath = getLogFilePath();
|
|
shell.showItemInFolder(filePath);
|
|
}
|