1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-30 23:44:55 +02:00

Tools: Added syncDebugLog to help debugging sync operations

This commit is contained in:
Laurent Cozic
2021-10-15 12:24:22 +01:00
parent 0ccd8dee41
commit fb935dde18
8 changed files with 47 additions and 6 deletions

View File

@ -0,0 +1,13 @@
// 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.
import Logger, { TargetType } from '../../Logger';
import { homedir } from 'os';
const syncDebugLog = new Logger();
syncDebugLog.addTarget(TargetType.File, {
path: `${homedir()}/synclog.txt`,
});
export default syncDebugLog;