mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
14 lines
439 B
TypeScript
14 lines
439 B
TypeScript
// The sync debug log can be used to view from a single file a sequence of sync
|
|
// related events. In particular, it logs notes and folders being saved, and the
|
|
// relevant sync operations. Enable it in app.ts
|
|
|
|
import Logger, { TargetType } from '../../Logger';
|
|
import { homedir } from 'os';
|
|
|
|
const syncDebugLog = new Logger();
|
|
syncDebugLog.addTarget(TargetType.File, {
|
|
path: `${homedir()}/synclog.txt`,
|
|
});
|
|
|
|
export default syncDebugLog;
|