Files
AFFiNE-Mirror/apps/electron/layers/main/src/logger.ts
2023-05-09 02:30:01 -05:00

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);
}